diff options
Diffstat (limited to 'spec/support_specs/helpers/stub_feature_flags_spec.rb')
-rw-r--r-- | spec/support_specs/helpers/stub_feature_flags_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/support_specs/helpers/stub_feature_flags_spec.rb b/spec/support_specs/helpers/stub_feature_flags_spec.rb index 9b35fe35259..a59d8a20a40 100644 --- a/spec/support_specs/helpers/stub_feature_flags_spec.rb +++ b/spec/support_specs/helpers/stub_feature_flags_spec.rb @@ -47,13 +47,13 @@ RSpec.describe StubFeatureFlags do it { expect(Feature.enabled?(feature_name)).to eq(expected_result) } it { expect(Feature.disabled?(feature_name)).not_to eq(expected_result) } - context 'default_enabled does not impact feature state' do + context 'default_enabled_if_undefined does not impact feature state' do before do allow(dummy_definition).to receive(:default_enabled).and_return(true) end - it { expect(Feature.enabled?(feature_name, default_enabled: true)).to eq(expected_result) } - it { expect(Feature.disabled?(feature_name, default_enabled: true)).not_to eq(expected_result) } + it { expect(Feature.enabled?(feature_name, default_enabled_if_undefined: true)).to eq(expected_result) } + it { expect(Feature.disabled?(feature_name, default_enabled_if_undefined: true)).not_to eq(expected_result) } end end end @@ -83,13 +83,13 @@ RSpec.describe StubFeatureFlags do it { expect(Feature.enabled?(feature_name, actor(tested_actor))).to eq(expected_result) } it { expect(Feature.disabled?(feature_name, actor(tested_actor))).not_to eq(expected_result) } - context 'default_enabled does not impact feature state' do + context 'default_enabled_if_undefined does not impact feature state' do before do allow(dummy_definition).to receive(:default_enabled).and_return(true) end - it { expect(Feature.enabled?(feature_name, actor(tested_actor), default_enabled: true)).to eq(expected_result) } - it { expect(Feature.disabled?(feature_name, actor(tested_actor), default_enabled: true)).not_to eq(expected_result) } + it { expect(Feature.enabled?(feature_name, actor(tested_actor), default_enabled_if_undefined: true)).to eq(expected_result) } + it { expect(Feature.disabled?(feature_name, actor(tested_actor), default_enabled_if_undefined: true)).not_to eq(expected_result) } end end end |