X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbf35e0cf67ee330cd02c2431e0ed6d08681d184..fea1b5b88de731dd35d1f79d36ec40a8e8a1f6af:/test/models/user_test.rb diff --git a/test/models/user_test.rb b/test/models/user_test.rb index 4c863272b..76f520091 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -76,7 +76,7 @@ class UserTest < ActiveSupport::TestCase def test_display_name_valid # Due to sanitisation in the view some of these that you might not - # expact are allowed + # expect are allowed # However, would they affect the xml planet dumps? ok = ["Name", "'me", "he\"", "
", "*ho", "\"help\"@", "vergrößern", "ルシステムにも対応します", "輕觸搖晃的遊戲", "space space"] @@ -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