From c87bd9c0cd56ce0945b55cdedfe8c42635651de4 Mon Sep 17 00:00:00 2001 From: Mikk Romulus Date: Tue, 5 Dec 2023 16:06:55 +0200 Subject: [PATCH] chore: fix CI failing spec --- spec/lib/user_permissions_spec.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/lib/user_permissions_spec.rb b/spec/lib/user_permissions_spec.rb index d8c102fa..128a8957 100644 --- a/spec/lib/user_permissions_spec.rb +++ b/spec/lib/user_permissions_spec.rb @@ -25,9 +25,9 @@ context 'default list' do let(:list) { [ - 'Providentia_CF_GT', - 'Providentia_CF_RT', - 'Providentia_Admin' + "#{ENV['OIDC_RESOURCE_PREFIX']}CF_GT", + "#{ENV['OIDC_RESOURCE_PREFIX']}CF_RT", + "#{ENV['OIDC_RESOURCE_PREFIX']}Admin" ] } @@ -39,9 +39,9 @@ let(:exercise) { create(:exercise) } let(:list) { [ - "Providentia_#{exercise.dev_red_resource_name}", - "Providentia_#{exercise.dev_resource_name}", - 'Providentia_Admin' + "#{ENV['OIDC_RESOURCE_PREFIX']}#{exercise.dev_red_resource_name}", + "#{ENV['OIDC_RESOURCE_PREFIX']}#{exercise.dev_resource_name}", + "#{ENV['OIDC_RESOURCE_PREFIX']}Admin" ] } @@ -60,8 +60,8 @@ let!(:xs) { create(:exercise, abbreviation: 'xs') } let(:list) { [ - 'Providentia_LS_GT', - 'Providentia_XS_RT' + "#{ENV['OIDC_RESOURCE_PREFIX']}LS_GT", + "#{ENV['OIDC_RESOURCE_PREFIX']}XS_RT" ] }