diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/welcome_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/welcome_test.rb b/test/integration/welcome_test.rb index 4337a5a50..ffb3e240f 100644 --- a/test/integration/welcome_test.rb +++ b/test/integration/welcome_test.rb @@ -24,6 +24,8 @@ class WelcomeTest < Redmine::IntegrationTest :projects, :enabled_modules, :members, :member_roles, :roles def test_robots + Project.find(3).update_attribute :status, Project::STATUS_CLOSED + get '/robots.txt' assert_response :success assert_equal 'text/plain', @response.media_type @@ -36,5 +38,8 @@ class WelcomeTest < Redmine::IntegrationTest assert @response.body.match(%r{^Disallow: /login\r?$}) assert @response.body.match(%r{^Disallow: /account/register\r?$}) assert @response.body.match(%r{^Disallow: /account/lost_password\r?$}) + + # closed projects are included in the list + assert @response.body.match(%r{^Disallow: /projects/subproject1/issues\r?$}) end end |