summaryrefslogtreecommitdiffstats
path: root/test/functional/welcome_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/welcome_controller_test.rb')
-rw-r--r--test/functional/welcome_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb
index df565a751..b45cb97c8 100644
--- a/test/functional/welcome_controller_test.rb
+++ b/test/functional/welcome_controller_test.rb
@@ -60,4 +60,11 @@ class WelcomeControllerTest < Test::Unit::TestCase
get :index
assert_equal :fr, @controller.current_language
end
+
+ def test_robots
+ get :robots
+ assert_response :success
+ assert_equal 'text/plain', @response.content_type
+ assert @response.body.match(%r{^Disallow: /projects/ecookbook/issues$})
+ end
end