diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-07 10:26:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-07 10:26:36 +0000 |
commit | a4f167ec1a6d8cb3707716e73378e98e870d466f (patch) | |
tree | 0a7a6317e9c4488f3bf0d121c7ee844343040c93 /test/functional/members_controller_test.rb | |
parent | e29b4ba26ad18a1ab871effe0fa5e11c2a2b189e (diff) | |
download | redmine-a4f167ec1a6d8cb3707716e73378e98e870d466f.tar.gz redmine-a4f167ec1a6d8cb3707716e73378e98e870d466f.zip |
Don't render memberships forms, use #edit instead.
git-svn-id: http://svn.redmine.org/redmine/trunk@16149 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/members_controller_test.rb')
-rw-r--r-- | test/functional/members_controller_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/members_controller_test.rb b/test/functional/members_controller_test.rb index d132c8293..6de763fd1 100644 --- a/test/functional/members_controller_test.rb +++ b/test/functional/members_controller_test.rb @@ -110,6 +110,17 @@ class MembersControllerTest < Redmine::ControllerTest assert_match /alert/, response.body, "Alert message not sent" end + def test_edit + get :edit, :id => 2 + assert_response :success + assert_select 'input[name=?][value=?][checked=checked]', 'membership[role_ids][]', '2' + end + + def test_xhr_edit + xhr :get, :edit, :id => 2 + assert_response :success + end + def test_update assert_no_difference 'Member.count' do put :update, :id => 2, :membership => {:role_ids => [1], :user_id => 3} |