diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-18 21:26:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-18 21:26:30 +0000 |
commit | ec31b616982f137abdee8d0c6aa9dc4a6d103189 (patch) | |
tree | e4f5dc564be2b4ce5047a1f5acb2790fdc3b70ca /test/functional/account_controller_openid_test.rb | |
parent | 1db54e228d98d20536133bf52a8af0ce67616dc3 (diff) | |
download | redmine-ec31b616982f137abdee8d0c6aa9dc4a6d103189.tar.gz redmine-ec31b616982f137abdee8d0c6aa9dc4a6d103189.zip |
Removes calls to #assert_template and #assigns in functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15695 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/account_controller_openid_test.rb')
-rw-r--r-- | test/functional/account_controller_openid_test.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/functional/account_controller_openid_test.rb b/test/functional/account_controller_openid_test.rb index 6e6723e5b..b76e4bca2 100644 --- a/test/functional/account_controller_openid_test.rb +++ b/test/functional/account_controller_openid_test.rb @@ -111,9 +111,8 @@ class AccountControllerOpenidTest < Redmine::ControllerTest post :login, :openid_url => 'http://openid.example.com/good_user' assert_response :success - assert_template 'register' - assert assigns(:user) - assert_equal 'http://openid.example.com/good_user', assigns(:user)[:identity_url] + + assert_select 'input[name=?][value=?]', 'user[identity_url]', 'http://openid.example.com/good_user' end def test_login_with_openid_with_new_user_with_missing_information_should_register @@ -121,9 +120,6 @@ class AccountControllerOpenidTest < Redmine::ControllerTest post :login, :openid_url => 'http://openid.example.com/good_blank_user' assert_response :success - assert_template 'register' - assert assigns(:user) - assert_equal 'http://openid.example.com/good_blank_user', assigns(:user)[:identity_url] assert_select 'input[name=?]', 'user[login]' assert_select 'input[name=?]', 'user[password]' |