Merged r11839 from trunk (#14020).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11997 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -325,6 +325,18 @@ class UsersControllerTest < ActionController::TestCase
|
||||
assert_equal [1, 2], u.notified_projects_ids.sort
|
||||
end
|
||||
|
||||
def test_update_status_should_not_update_attributes
|
||||
user = User.find(2)
|
||||
user.pref[:no_self_notified] = '1'
|
||||
user.pref.save
|
||||
|
||||
put :update, :id => 2, :user => {:status => 3}
|
||||
assert_response 302
|
||||
user = User.find(2)
|
||||
assert_equal 3, user.status
|
||||
assert_equal '1', user.pref[:no_self_notified]
|
||||
end
|
||||
|
||||
def test_destroy
|
||||
assert_difference 'User.count', -1 do
|
||||
delete :destroy, :id => 2
|
||||
|
||||
Reference in New Issue
Block a user