summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-27 17:27:50 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-27 17:27:50 +0000
commite1f96ca4db645f0da090dfcee378217353505c62 (patch)
tree149dd8fa4a99f9e96ab5a9f20ab9050aeee047a1 /test
parent6c93b8d5992efe0efc2d00a2f0d846c4460d6f67 (diff)
downloadredmine-e1f96ca4db645f0da090dfcee378217353505c62.tar.gz
redmine-e1f96ca4db645f0da090dfcee378217353505c62.zip
Replaces the obsolete robots.txt with a cached action (#2491).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2319 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-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