summaryrefslogtreecommitdiff
path: root/spec/helpers/application_settings_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/application_settings_helper_spec.rb')
-rw-r--r--spec/helpers/application_settings_helper_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/helpers/application_settings_helper_spec.rb b/spec/helpers/application_settings_helper_spec.rb
index c5fd88ada8f..7f25721801f 100644
--- a/spec/helpers/application_settings_helper_spec.rb
+++ b/spec/helpers/application_settings_helper_spec.rb
@@ -146,4 +146,24 @@ RSpec.describe ApplicationSettingsHelper do
])
end
end
+
+ describe '.show_documentation_base_url_field?' do
+ subject { helper.show_documentation_base_url_field? }
+
+ before do
+ stub_feature_flags(help_page_documentation_redirect: feature_flag)
+ end
+
+ context 'when feature flag is enabled' do
+ let(:feature_flag) { true }
+
+ it { is_expected.to eq(true) }
+ end
+
+ context 'when feature flag is disabled' do
+ let(:feature_flag) { false }
+
+ it { is_expected.to eq(false) }
+ end
+ end
end