From 6eba8b0c2345c25e03f845c52bb9ec26bb5056d9 Mon Sep 17 00:00:00 2001 From: Joe Haig Date: Tue, 12 Nov 2024 14:22:12 +0000 Subject: [PATCH] Add beta_tester role for case workers --- app/models/case_worker.rb | 2 +- spec/models/case_worker_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/case_worker.rb b/app/models/case_worker.rb index b25d92bf8a..0c1d43ffcc 100644 --- a/app/models/case_worker.rb +++ b/app/models/case_worker.rb @@ -14,7 +14,7 @@ class CaseWorker < ApplicationRecord auto_strip_attributes squish: true, nullify: true - ROLES = %w[admin case_worker provider_management].freeze + ROLES = %w[admin case_worker provider_management beta_tester].freeze include Roles include SoftlyDeletable diff --git a/spec/models/case_worker_spec.rb b/spec/models/case_worker_spec.rb index e8f0dd6f2d..53069a2788 100644 --- a/spec/models/case_worker_spec.rb +++ b/spec/models/case_worker_spec.rb @@ -34,7 +34,7 @@ describe 'ROLES' do it 'has "admin", "case_worker" and "provider_management"' do - expect(described_class::ROLES).to match_array(%w[admin case_worker provider_management]) + expect(described_class::ROLES).to match_array(%w[admin case_worker provider_management beta_tester]) end end