X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/77a2657d33f0066dbdda5fce831113b6e165a264..3cfb8b7d053edfba454dbcb1eff09382b5dca193:/test/abilities/api_capability_test.rb diff --git a/test/abilities/api_capability_test.rb b/test/abilities/api_capability_test.rb index 0f69ddba9..58c8f7fe7 100644 --- a/test/abilities/api_capability_test.rb +++ b/test/abilities/api_capability_test.rb @@ -13,9 +13,9 @@ class ChangesetCommentApiCapabilityTest < ActiveSupport::TestCase end end - test "as a normal user with write_api scope" do + test "as a normal user with write_changeset_comments scope" do user = create(:user) - scopes = Set.new %w[write_api] + scopes = Set.new %w[write_changeset_comments] ability = ApiAbility.new user, scopes [:destroy, :restore].each do |action| @@ -37,9 +37,9 @@ class ChangesetCommentApiCapabilityTest < ActiveSupport::TestCase end end - test "as a moderator with write_api scope" do + test "as a moderator with write_changeset_comments scope" do user = create(:moderator_user) - scopes = Set.new %w[write_api] + scopes = Set.new %w[write_changeset_comments] ability = ApiAbility.new user, scopes [:create, :destroy, :restore].each do |action|