diff options
author | Go MAEDA <maeda@farend.jp> | 2022-11-01 03:26:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-11-01 03:26:15 +0000 |
commit | afbec488c44b2c8efab1b2259bba89a768b043cc (patch) | |
tree | b79df336f780be2f78396973789141b4732889a8 /test/integration | |
parent | dcdf27b8958606b6a6893c4b754ef2c97c3c0313 (diff) | |
download | redmine-afbec488c44b2c8efab1b2259bba89a768b043cc.tar.gz redmine-afbec488c44b2c8efab1b2259bba89a768b043cc.zip |
Always allow access to /robots.txt for Anonymous (#37807).
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21939 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/welcome_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/welcome_test.rb b/test/integration/welcome_test.rb index ffb3e240f..1f46cd469 100644 --- a/test/integration/welcome_test.rb +++ b/test/integration/welcome_test.rb @@ -42,4 +42,12 @@ class WelcomeTest < Redmine::IntegrationTest # closed projects are included in the list assert @response.body.match(%r{^Disallow: /projects/subproject1/issues\r?$}) end + + def test_robots_when_login_is_required + with_settings :login_required => '1' do + get '/robots.txt' + assert_response :success + assert_equal 'text/plain', @response.media_type + end + end end |