diff options
Diffstat (limited to 'spec/bin')
-rw-r--r-- | spec/bin/feature_flag_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/bin/feature_flag_spec.rb b/spec/bin/feature_flag_spec.rb index 41117880f95..185a03fc587 100644 --- a/spec/bin/feature_flag_spec.rb +++ b/spec/bin/feature_flag_spec.rb @@ -240,5 +240,18 @@ RSpec.describe 'bin/feature-flag' do end end end + + describe '.read_ee_only' do + where(:type, :is_ee_only) do + :development | false + :licensed | true + end + + with_them do + let(:options) { OpenStruct.new(name: 'foo', type: type) } + + it { expect(described_class.read_ee_only(options)).to eq(is_ee_only) } + end + end end end |