summaryrefslogtreecommitdiff
path: root/spec/models/user_highest_role_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/user_highest_role_spec.rb')
-rw-r--r--spec/models/user_highest_role_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/user_highest_role_spec.rb b/spec/models/user_highest_role_spec.rb
index 3ae672cf7f7..7ef04466b6f 100644
--- a/spec/models/user_highest_role_spec.rb
+++ b/spec/models/user_highest_role_spec.rb
@@ -8,7 +8,7 @@ RSpec.describe UserHighestRole do
end
describe 'validations' do
- it { is_expected.to validate_inclusion_of(:highest_access_level).in_array([nil, *Gitlab::Access.all_values]) }
+ it { is_expected.to validate_inclusion_of(:highest_access_level).in_array(Gitlab::Access.all_values).allow_nil }
end
describe 'scopes' do