summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/sourcegraph_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/sourcegraph_spec.rb')
-rw-r--r--spec/lib/gitlab/sourcegraph_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/sourcegraph_spec.rb b/spec/lib/gitlab/sourcegraph_spec.rb
index 6bebd1ca3e6..e2c1e959cbf 100644
--- a/spec/lib/gitlab/sourcegraph_spec.rb
+++ b/spec/lib/gitlab/sourcegraph_spec.rb
@@ -37,6 +37,12 @@ RSpec.describe Gitlab::Sourcegraph do
it { is_expected.to be_truthy }
end
+
+ context 'when feature is disabled' do
+ let(:feature_scope) { false }
+
+ it { is_expected.to be_falsey }
+ end
end
describe '.feature_enabled?' do