mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
controllers with rspec3 syntax
This commit is contained in:
@ -7,13 +7,13 @@ describe RobotsTxtController do
|
||||
it "returns index when indexing is allowed" do
|
||||
SiteSetting.stubs(:allow_index_in_robots_txt).returns(true)
|
||||
get :index
|
||||
response.should render_template :index
|
||||
expect(response).to render_template :index
|
||||
end
|
||||
|
||||
it "returns noindex when indexing is disallowed" do
|
||||
SiteSetting.stubs(:allow_index_in_robots_txt).returns(false)
|
||||
get :index
|
||||
response.should render_template :no_index
|
||||
expect(response).to render_template :no_index
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user