summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-02-09 04:49:33 +0000
committerGo MAEDA <maeda@farend.jp>2024-02-09 04:49:33 +0000
commitda79bdae456b3d9b292eca53f655b47a1c96db80 (patch)
tree807a436c71d77c486cf168cfbbe4b98f27b0a946 /test
parent1dc51f11981dd94c6735fdc23b1e0f1cf56955dd (diff)
downloadredmine-da79bdae456b3d9b292eca53f655b47a1c96db80.tar.gz
redmine-da79bdae456b3d9b292eca53f655b47a1c96db80.zip
Merged r22698 from trunk to 5.1-stable (#40208).
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22699 e93f8b46-1217-0410-a6f0-8f06a7374b81
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 d1b0c8889..4fff2827c 100644
--- a/test/integration/welcome_test.rb
+++ b/test/integration/welcome_test.rb
@@ -54,4 +54,11 @@ class WelcomeTest < Redmine::IntegrationTest
assert @response.body.match(%r{^Disallow: /\r?$})
end
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