]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/user_test.rb
Use a state machine for user status
[rails.git] / test / models / user_test.rb
index 8a6e41013b15eb93f6f02175396d7b3c46c3b912..f35cdd23fb4c7eabb44f066aaf3d064b2e299b43 100644 (file)
@@ -246,9 +246,9 @@ class UserTest < ActiveSupport::TestCase
     assert create(:moderator_user).has_role?("moderator")
   end
 
-  def test_destroy
+  def test_soft_destroy
     user = create(:user, :with_home_location, :description => "foo")
-    user.destroy
+    user.soft_destroy
     assert_equal "user_#{user.id}", user.display_name
     assert user.description.blank?
     assert_nil user.home_lat