From dacc3a6898c0e2c1da414621fc85b4ff582441a6 Mon Sep 17 00:00:00 2001 From: Daria Mayorova Date: Fri, 10 Jan 2025 16:26:44 +0100 Subject: [PATCH] Fix incorrect member permission service --- test/unit/abilities/provider_any_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/abilities/provider_any_test.rb b/test/unit/abilities/provider_any_test.rb index 19c751625d..306d0c6c66 100644 --- a/test/unit/abilities/provider_any_test.rb +++ b/test/unit/abilities/provider_any_test.rb @@ -32,6 +32,7 @@ def test_policies_not_tenant test 'Cinstance/Application events can show if has :partners and access to the service if there is a service' do service = FactoryBot.create(:simple_service, account: @account) + another_service = FactoryBot.create(:simple_service, account: @account) plan = FactoryBot.create(:simple_application_plan, issuer: service) cinstance = FactoryBot.create(:cinstance, plan: plan) cinstance_events = [ @@ -45,7 +46,7 @@ def test_policies_not_tenant assert_cannot ability, :show, cinstance_event - user.member_permission_service_ids = [FactoryBot.create(:cinstance).id] + user.member_permission_service_ids = [another_service.id] assert_cannot ability, :show, cinstance_event