mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 19:26:59 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user