diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-15 11:20:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-15 11:20:47 +0000 |
commit | 36fc7beb2fe21beaf56b640b97e3079c7399a48f (patch) | |
tree | 9e4f6d8ffbf71ca58541a10639afe0eb4d0dde50 /test/functional | |
parent | f21a005fea463a579512f2e4888693255187dd45 (diff) | |
download | redmine-36fc7beb2fe21beaf56b640b97e3079c7399a48f.tar.gz redmine-36fc7beb2fe21beaf56b640b97e3079c7399a48f.zip |
Moved new project member to its own action MemberController#new.
git-svn-id: http://svn.redmine.org/redmine/trunk@13600 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-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 a1ab6f93a..be8b7a343 100644 --- a/test/functional/members_controller_test.rb +++ b/test/functional/members_controller_test.rb @@ -25,6 +25,17 @@ class MembersControllerTest < ActionController::TestCase @request.session[:user_id] = 2 end + def test_new + get :new, :project_id => 1 + assert_response :success + end + + def test_xhr_new + xhr :get, :new, :project_id => 1 + assert_response :success + assert_equal 'text/javascript', response.content_type + end + def test_create assert_difference 'Member.count' do post :create, :project_id => 1, :membership => {:role_ids => [1], :user_id => 7} |