X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..67749e75347ee7ae94ba6f6929846389d8e12118:/test/abilities/api_abilities_test.rb diff --git a/test/abilities/api_abilities_test.rb b/test/abilities/api_abilities_test.rb index 7734ce996..8ddc54561 100644 --- a/test/abilities/api_abilities_test.rb +++ b/test/abilities/api_abilities_test.rb @@ -9,11 +9,11 @@ class GuestApiAbilityTest < ApiAbilityTest test "note permissions for a guest" do ability = ApiAbility.new nil - [:index, :create, :comment, :feed, :show, :search].each do |action| + [:index, :create, :feed, :show, :search].each do |action| assert ability.can?(action, Note), "should be able to #{action} Notes" end - [:close, :reopen, :destroy].each do |action| + [:comment, :close, :reopen, :destroy].each do |action| assert ability.cannot?(action, Note), "should not be able to #{action} Notes" end end