summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/integration/welcome_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/welcome_test.rb b/test/integration/welcome_test.rb
index 2d360dd8b..233d13f21 100644
--- a/test/integration/welcome_test.rb
+++ b/test/integration/welcome_test.rb
@@ -37,4 +37,11 @@ class WelcomeTest < Redmine::IntegrationTest
assert @response.body.match(%r{^Disallow: /account/register\r?$})
assert @response.body.match(%r{^Disallow: /account/lost_password\r?$})
end
+
+ def test_robots_should_not_respond_to_formats_other_than_txt
+ %w(robots.json robots).each do |file|
+ get "/#{file}"
+ assert_response :not_found
+ end
+ end
end