blob: 9914de7c8477dca303e3d14dc0e47d3313fca885 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# frozen_string_literal: true
RSpec.shared_examples 'exposing container expiration policy option' do |model_option|
it 'exposes all options' do
expect(described_class.values.keys).to contain_exactly(*expected_values)
end
it 'uses all possible options from model' do
all_options = ContainerExpirationPolicy.public_send("#{model_option}_options").keys
expect(described_class::OPTIONS_MAPPING.keys).to contain_exactly(*all_options)
end
end
|