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/custom_field_enumerations_controller_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/custom_field_enumerations_controller_test.rb')
-rw-r--r-- | test/functional/custom_field_enumerations_controller_test.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/functional/custom_field_enumerations_controller_test.rb b/test/functional/custom_field_enumerations_controller_test.rb index c9fa39621..539600125 100644 --- a/test/functional/custom_field_enumerations_controller_test.rb +++ b/test/functional/custom_field_enumerations_controller_test.rb @@ -32,7 +32,10 @@ class CustomFieldEnumerationsControllerTest < Redmine::ControllerTest def test_index get :index, :custom_field_id => @field.id assert_response :success - assert_template 'index' + + assert_select 'ul#custom_field_enumerations' do + assert_select 'li', 2 + end end def test_create @@ -91,8 +94,9 @@ class CustomFieldEnumerationsControllerTest < Redmine::ControllerTest assert_no_difference 'CustomFieldEnumeration.count' do delete :destroy, :custom_field_id => @field.id, :id => @foo.id - assert_response 200 - assert_template 'destroy' + assert_response :success + + assert_select 'select[name=?]', 'reassign_to_id' end end |