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/members_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/members_controller_test.rb')
-rw-r--r-- | test/functional/members_controller_test.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/functional/members_controller_test.rb b/test/functional/members_controller_test.rb index 0e6d7b0a8..c9337e210 100644 --- a/test/functional/members_controller_test.rb +++ b/test/functional/members_controller_test.rb @@ -93,7 +93,6 @@ class MembersControllerTest < Redmine::ControllerTest assert_difference 'Member.count', 3 do xhr :post, :create, :project_id => 1, :membership => {:role_ids => [1], :user_ids => [7, 8, 9]} assert_response :success - assert_template 'create' assert_equal 'text/javascript', response.content_type end assert User.find(7).member_of?(Project.find(1)) @@ -106,7 +105,6 @@ class MembersControllerTest < Redmine::ControllerTest assert_no_difference 'Member.count' do xhr :post, :create, :project_id => 1, :membership => {:role_ids => [], :user_ids => [7, 8, 9]} assert_response :success - assert_template 'create' assert_equal 'text/javascript', response.content_type end assert_match /alert/, response.body, "Alert message not sent" @@ -143,7 +141,6 @@ class MembersControllerTest < Redmine::ControllerTest assert_no_difference 'Member.count' do xhr :put, :update, :id => 2, :membership => {:role_ids => [1], :user_id => 3} assert_response :success - assert_template 'update' assert_equal 'text/javascript', response.content_type end member = Member.find(2) @@ -186,7 +183,6 @@ class MembersControllerTest < Redmine::ControllerTest assert_difference 'Member.count', -1 do xhr :delete, :destroy, :id => 2 assert_response :success - assert_template 'destroy' assert_equal 'text/javascript', response.content_type end assert_nil Member.find_by_id(2) |