diff options
Diffstat (limited to 'spec/models/container_expiration_policy_spec.rb')
-rw-r--r-- | spec/models/container_expiration_policy_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/models/container_expiration_policy_spec.rb b/spec/models/container_expiration_policy_spec.rb index e5f9fdd410e..1e911af5670 100644 --- a/spec/models/container_expiration_policy_spec.rb +++ b/spec/models/container_expiration_policy_spec.rb @@ -11,8 +11,7 @@ RSpec.describe ContainerExpirationPolicy, type: :model do it { is_expected.to validate_presence_of(:project) } describe '#enabled' do - it { is_expected.to allow_value(true, false).for(:enabled) } - it { is_expected.not_to allow_value(nil).for(:enabled) } + it { is_expected.to validate_inclusion_of(:enabled).in_array([true, false]) } end describe '#cadence' do |