diff options
author | Go MAEDA <maeda@farend.jp> | 2020-12-05 07:10:39 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-12-05 07:10:39 +0000 |
commit | 661c5646b45e77389af0346c90bec943df5aa2be (patch) | |
tree | b3b903e2a4bdba41304fa8804af10d8050bd0234 /test/functional/account_controller_test.rb | |
parent | 135fd7b79f7a45fa3741f95aa53af5457d59b2dd (diff) | |
download | redmine-661c5646b45e77389af0346c90bec943df5aa2be.tar.gz redmine-661c5646b45e77389af0346c90bec943df5aa2be.zip |
Use robots.txt instead of robots meta tag to prevent web crawlers from indexing login, register, and lost password form (#33658).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20577 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/account_controller_test.rb')
-rw-r--r-- | test/functional/account_controller_test.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index df8ed6887..d571ea1ae 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -32,7 +32,6 @@ class AccountControllerTest < Redmine::ControllerTest assert_select 'input[name=username]' assert_select 'input[name=password]' - assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive' end def test_get_login_while_logged_in_should_redirect_to_back_url_if_present @@ -294,7 +293,6 @@ class AccountControllerTest < Redmine::ControllerTest assert_select 'input[name=?]', 'user[password]' assert_select 'input[name=?]', 'user[password_confirmation]' - assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive' end end @@ -407,7 +405,6 @@ class AccountControllerTest < Redmine::ControllerTest get :lost_password assert_response :success assert_select 'input[name=mail]' - assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive' end def test_lost_password_for_active_user_should_create_a_token @@ -527,7 +524,6 @@ class AccountControllerTest < Redmine::ControllerTest assert_response :success assert_select 'input[type=hidden][name=token][value=?]', token.value - assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive' end def test_get_lost_password_with_invalid_token_should_redirect |