X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e5406c683639c111f318d4ed2749f970d8d5ff6b..1253bdcdc5dc43dc3880751a7255256c292e0ddc:/test/models/user_test.rb diff --git a/test/models/user_test.rb b/test/models/user_test.rb index 8329b1962..a4ed07e09 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -239,11 +239,11 @@ class UserTest < ActiveSupport::TestCase assert_predicate create(:administrator_user), :administrator? end - def test_has_role? - assert_not create(:user).has_role?("administrator") - assert_not create(:user).has_role?("moderator") - assert create(:administrator_user).has_role?("administrator") - assert create(:moderator_user).has_role?("moderator") + def test_role? + assert_not create(:user).role?("administrator") + assert_not create(:user).role?("moderator") + assert create(:administrator_user).role?("administrator") + assert create(:moderator_user).role?("moderator") end def test_soft_destroy