From 79c19233bc4531a66a9bd59f7c2e5224ed34e39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 25 Feb 2013 23:58:16 +0100 Subject: [PATCH] corrected spec labels --- spec/controllers/robots_txt_controller_spec.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/controllers/robots_txt_controller_spec.rb b/spec/controllers/robots_txt_controller_spec.rb index 6bd739c062d..34c16e25d36 100644 --- a/spec/controllers/robots_txt_controller_spec.rb +++ b/spec/controllers/robots_txt_controller_spec.rb @@ -3,19 +3,20 @@ require 'spec_helper' describe RobotsTxtController do context '.index' do - it "returns noindex when indexing is disallowed" 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 end - it "returns index when indexing is allowed" do + 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 end - it "serves it regardless if a site is in private mode" do + it "serves noindex when in private mode regardless of the configuration" do SiteSetting.stubs(:allow_index_in_robots_txt).returns(true) SiteSetting.stubs(:restrict_access).returns(true) get :index