X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/24d605f567f89024dc9cc1d09db836cc2af53007..1a11c4dc191d93b18fcf5aa917448c8cd6d2556b:/test/models/user_test.rb diff --git a/test/models/user_test.rb b/test/models/user_test.rb index 8a6e41013..f35cdd23f 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -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