Skip to content

Commit

Permalink
Improve test name
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesmiguel committed Dec 20, 2022
1 parent 2a8d83e commit 972db04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/abilities/provider_any_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ class ShowAlertRelatedEventTest < ProviderAnyTest
assert_cannot ability, :show, limit_violation_reached_provider_event
end

test 'can show AlertRelatedEvent when user has :monitoring and the user has no services (old permissions)' do
# This is related to the :service_permissions rolling update. Users created before it do not have the :services
# section included in their member permissions, which grants them access to all services.
test 'can show AlertRelatedEvent when user has :monitoring and the user has access to all services through the old permission system' do
user.expects(:has_permission?).with(:monitoring).returns(true)

assert_can ability, :show, limit_violation_reached_provider_event
Expand Down

0 comments on commit 972db04

Please sign in to comment.