]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/user_suspension_test.rb
Merge branch 'pull/5209'
[rails.git] / test / system / user_suspension_test.rb
index 075303ff0f926ade5f20fc53b30f132d640205c6..a7251235770971ff33b49f2bcb3cc912f604b3f5 100644 (file)
@@ -7,7 +7,7 @@ class UserSuspensionTest < ApplicationSystemTestCase
     visit edit_account_path
     assert_content "My Settings"
 
-    user.update(:status => "suspended")
+    user.suspend!
 
     visit edit_account_path
     assert_content "This decision will be reviewed by an administrator shortly"