summaryrefslogtreecommitdiffstats
path: root/test/functional/principal_memberships_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-19 20:06:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-19 20:06:01 +0000
commitbb5ccb870ce312cada7d8c95f1cba655cd9468ac (patch)
tree088f27f2fbce9bf65e6566f0d449eb14d3237c9b /test/functional/principal_memberships_controller_test.rb
parent34828e18161c9886f87ec17696b55f51983fac9b (diff)
downloadredmine-bb5ccb870ce312cada7d8c95f1cba655cd9468ac.tar.gz
redmine-bb5ccb870ce312cada7d8c95f1cba655cd9468ac.zip
Removes calls to #assert_template and #assigns in functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15715 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/principal_memberships_controller_test.rb')
-rw-r--r--test/functional/principal_memberships_controller_test.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/functional/principal_memberships_controller_test.rb b/test/functional/principal_memberships_controller_test.rb
index c580e5835..f20a52099 100644
--- a/test/functional/principal_memberships_controller_test.rb
+++ b/test/functional/principal_memberships_controller_test.rb
@@ -86,7 +86,6 @@ class PrincipalMembershipsControllerTest < Redmine::ControllerTest
assert_difference 'Member.count' do
xhr :post, :create, :user_id => 7, :membership => {:project_ids => [3], :role_ids => [2]}, :format => 'js'
assert_response :success
- assert_template 'create'
assert_equal 'text/javascript', response.content_type
end
member = Member.order('id DESC').first
@@ -100,7 +99,6 @@ class PrincipalMembershipsControllerTest < Redmine::ControllerTest
assert_no_difference 'Member.count' do
xhr :post, :create, :user_id => 7, :membership => {:project_ids => [3]}, :format => 'js'
assert_response :success
- assert_template 'create'
assert_equal 'text/javascript', response.content_type
end
assert_include 'alert', response.body, "Alert message not sent"
@@ -119,7 +117,6 @@ class PrincipalMembershipsControllerTest < Redmine::ControllerTest
assert_no_difference 'Member.count' do
xhr :put, :update, :user_id => 2, :id => 1, :membership => {:role_ids => [2]}, :format => 'js'
assert_response :success
- assert_template 'update'
assert_equal 'text/javascript', response.content_type
end
assert_equal [2], Member.find(1).role_ids
@@ -138,7 +135,6 @@ class PrincipalMembershipsControllerTest < Redmine::ControllerTest
assert_difference 'Member.count', -1 do
xhr :delete, :destroy, :user_id => 2, :id => 1
assert_response :success
- assert_template 'destroy'
assert_equal 'text/javascript', response.content_type
end
assert_nil Member.find_by_id(1)
@@ -161,7 +157,6 @@ class PrincipalMembershipsControllerTest < Redmine::ControllerTest
assert_difference 'Group.find(10).members.count' do
xhr :post, :create, :group_id => 10, :membership => {:project_ids => [2], :role_ids => ['1', '2']}
assert_response :success
- assert_template 'create'
assert_equal 'text/javascript', response.content_type
end
assert_match /OnlineStore/, response.body
@@ -171,7 +166,6 @@ class PrincipalMembershipsControllerTest < Redmine::ControllerTest
assert_no_difference 'Group.find(10).members.count' do
xhr :post, :create, :group_id => 10, :membership => {:project_ids => [999], :role_ids => ['1', '2']}
assert_response :success
- assert_template 'create'
assert_equal 'text/javascript', response.content_type
end
assert_match /alert/, response.body, "Alert message not sent"
@@ -187,7 +181,6 @@ class PrincipalMembershipsControllerTest < Redmine::ControllerTest
assert_no_difference 'Group.find(10).members.count' do
xhr :post, :update, :group_id => 10, :id => 6, :membership => {:role_ids => ['1', '3']}
assert_response :success
- assert_template 'update'
assert_equal 'text/javascript', response.content_type
end
end
@@ -202,7 +195,6 @@ class PrincipalMembershipsControllerTest < Redmine::ControllerTest
assert_difference 'Group.find(10).members.count', -1 do
xhr :delete, :destroy, :group_id => 10, :id => 6
assert_response :success
- assert_template 'destroy'
assert_equal 'text/javascript', response.content_type
end
end