X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/191d7f371031cec6a1b83157d3e9f17dee787075..89d9690982a7bef4e7aa03b543a962ed1e8e34d8:/test/models/user_test.rb diff --git a/test/models/user_test.rb b/test/models/user_test.rb index c34b4b81f..76f520091 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -256,9 +256,9 @@ class UserTest < ActiveSupport::TestCase assert create(:moderator_user).has_role?("moderator") end - def test_delete + def test_destroy user = create(:user, :with_home_location, :description => "foo") - user.delete + user.destroy assert_equal "user_#{user.id}", user.display_name assert user.description.blank? assert_nil user.home_lat