diff options
author | Go MAEDA <maeda@farend.jp> | 2024-02-09 04:51:05 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-02-09 04:51:05 +0000 |
commit | 4feb4e5584fd4d1dc3c13a340f3410b188e62302 (patch) | |
tree | 5c1857055ae8e4dce84c578821e77f7ac584ed99 /test | |
parent | e6476895178647515e8bdbb658cbb6047f4a3076 (diff) | |
download | redmine-4feb4e5584fd4d1dc3c13a340f3410b188e62302.tar.gz redmine-4feb4e5584fd4d1dc3c13a340f3410b188e62302.zip |
Merged r22698 from trunk to 5.0-stable (#40208).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22700 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/welcome_test.rb | 7 |
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 |