X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..98ff2c0b9c28b7a039b55573540f85ea84eb9fca:/test/abilities/api_abilities_test.rb?ds=sidebyside 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