diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-12 14:19:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-12 14:19:24 +0000 |
commit | 9e2d401f43d9136e887cb099a72ecc33d9dd88f5 (patch) | |
tree | 1f4b82a81336dfd01acd678aa569f3dda0314ea1 /test/functional/users_controller_test.rb | |
parent | 1d4f28a54dec696e34f1477f440471c97d521963 (diff) | |
download | redmine-9e2d401f43d9136e887cb099a72ecc33d9dd88f5.tar.gz redmine-9e2d401f43d9136e887cb099a72ecc33d9dd88f5.zip |
Moves mail_notification param to user hash param so that it can be set using the User API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4496 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/users_controller_test.rb')
-rw-r--r-- | test/functional/users_controller_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index 8b879cc30..0b3231f93 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -139,9 +139,9 @@ class UsersControllerTest < ActionController::TestCase :login => 'jdoe', :password => 'test', :password_confirmation => 'test', - :mail => 'jdoe@gmail.com' - }, - :notification_option => 'none' + :mail => 'jdoe@gmail.com', + :mail_notification => 'none' + } end should_assign_to :user @@ -173,11 +173,11 @@ class UsersControllerTest < ActionController::TestCase def test_update ActionMailer::Base.deliveries.clear - put :update, :id => 2, :user => {:firstname => 'Changed'}, :notification_option => 'all', :pref => {:hide_mail => '1', :comments_sorting => 'desc'} + put :update, :id => 2, :user => {:firstname => 'Changed', :mail_notification => 'only_assigned'}, :pref => {:hide_mail => '1', :comments_sorting => 'desc'} user = User.find(2) assert_equal 'Changed', user.firstname - assert_equal 'all', user.mail_notification + assert_equal 'only_assigned', user.mail_notification assert_equal true, user.pref[:hide_mail] assert_equal 'desc', user.pref[:comments_sorting] assert ActionMailer::Base.deliveries.empty? |