summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-13 17:11:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-13 17:11:38 +0000
commit4a59b869c04ed3188e1d2de3b9f1879ee3876dec (patch)
tree8086a4033825feb3611051d871f5d3d72f648855 /test/functional
parent10ed306b1935834afa1aad304f1ee5c21cc807d1 (diff)
downloadredmine-4a59b869c04ed3188e1d2de3b9f1879ee3876dec.tar.gz
redmine-4a59b869c04ed3188e1d2de3b9f1879ee3876dec.zip
Update notified_project_ids while saving record.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11840 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/users_controller_test.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index bf8f444af..5959da10e 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -364,17 +364,13 @@ class UsersControllerTest < ActionController::TestCase
u = User.find(2)
assert_equal [1, 2, 5], u.projects.collect{|p| p.id}.sort
assert_equal [1, 2, 5], u.notified_projects_ids.sort
- assert_tag :tag => 'input',
- :attributes => {
- :id => 'notified_project_ids_',
- :value => 1,
- }
+ assert_select 'input[name=?][value=?]', 'user[notified_project_ids][]', '1'
assert_equal 'all', u.mail_notification
put :update, :id => 2,
:user => {
- :mail_notification => 'selected',
- },
- :notified_project_ids => [1, 2]
+ :mail_notification => 'selected',
+ :notified_project_ids => [1, 2]
+ }
u = User.find(2)
assert_equal 'selected', u.mail_notification
assert_equal [1, 2], u.notified_projects_ids.sort