summaryrefslogtreecommitdiffstats
path: root/test/functional/members_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-09-12 08:36:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-09-12 08:36:46 +0000
commit7707457145442d6177ce57c956dbe09af65df1b4 (patch)
tree2278f27bf20e08bb2f92e42ab728b4427cce6f07 /test/functional/members_controller_test.rb
parent847c7367b429e8df0e0fa1dbf3e415e37dd82bf1 (diff)
downloadredmine-7707457145442d6177ce57c956dbe09af65df1b4.tar.gz
redmine-7707457145442d6177ce57c956dbe09af65df1b4.zip
User groups branch merged.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2869 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/members_controller_test.rb')
-rw-r--r--test/functional/members_controller_test.rb17
1 files changed, 5 insertions, 12 deletions
diff --git a/test/functional/members_controller_test.rb b/test/functional/members_controller_test.rb
index 2680c3934..91f36abec 100644
--- a/test/functional/members_controller_test.rb
+++ b/test/functional/members_controller_test.rb
@@ -48,14 +48,6 @@ class MembersControllerTest < Test::Unit::TestCase
assert User.find(7).member_of?(Project.find(1))
end
- def test_create_by_user_login
- assert_difference 'Member.count' do
- post :new, :id => 1, :member => {:role_ids => [1], :user_login => 'someone'}
- end
- assert_redirected_to '/projects/ecookbook/settings/members'
- assert User.find(7).member_of?(Project.find(1))
- end
-
def test_create_multiple
assert_difference 'Member.count', 3 do
post :new, :id => 1, :member => {:role_ids => [1], :user_ids => [7, 8, 9]}
@@ -79,11 +71,12 @@ class MembersControllerTest < Test::Unit::TestCase
assert !User.find(3).member_of?(Project.find(1))
end
- def test_autocomplete_for_member_login
- get :autocomplete_for_member_login, :id => 1, :user => 'mis'
+ def test_autocomplete_for_member
+ get :autocomplete_for_member, :id => 1, :q => 'mis'
assert_response :success
- assert_template 'autocomplete_for_member_login'
+ assert_template 'autocomplete_for_member'
- assert_tag :ul, :child => {:tag => 'li', :content => /miscuser8/}
+ assert_tag :label, :content => /User Misc/,
+ :child => { :tag => 'input', :attributes => { :name => 'member[user_ids][]', :value => '8' } }
end
end