Remove site setting stubbing (Round 1)

This commit is contained in:
Arpit Jalan
2015-06-03 15:44:00 +05:30
parent 11619247b4
commit b33654ac31
6 changed files with 25 additions and 26 deletions

View File

@ -5,13 +5,13 @@ describe RobotsTxtController do
context '.index' do
it "returns index when indexing is allowed" do
SiteSetting.stubs(:allow_index_in_robots_txt).returns(true)
SiteSetting.allow_index_in_robots_txt = true
get :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)
SiteSetting.allow_index_in_robots_txt = false
get :index
expect(response).to render_template :no_index
end