summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/kas_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/kas_spec.rb')
-rw-r--r--spec/lib/gitlab/kas_spec.rb44
1 files changed, 0 insertions, 44 deletions
diff --git a/spec/lib/gitlab/kas_spec.rb b/spec/lib/gitlab/kas_spec.rb
index c9d40f785b8..24d2b03fe2a 100644
--- a/spec/lib/gitlab/kas_spec.rb
+++ b/spec/lib/gitlab/kas_spec.rb
@@ -104,48 +104,4 @@ RSpec.describe Gitlab::Kas do
end
end
end
-
- describe '.included_in_gitlab_com_rollout?' do
- let_it_be(:project) { create(:project) }
-
- context 'not GitLab.com' do
- before do
- allow(Gitlab).to receive(:com?).and_return(false)
- end
-
- it 'returns true' do
- expect(described_class.included_in_gitlab_com_rollout?(project)).to be_truthy
- end
- end
-
- context 'GitLab.com' do
- before do
- allow(Gitlab).to receive(:com?).and_return(true)
- end
-
- context 'kubernetes_agent_on_gitlab_com feature flag disabled' do
- before do
- stub_feature_flags(kubernetes_agent_on_gitlab_com: false)
- end
-
- it 'returns false' do
- expect(described_class.included_in_gitlab_com_rollout?(project)).to be_falsey
- end
- end
-
- context 'kubernetes_agent_on_gitlab_com feature flag enabled' do
- before do
- stub_feature_flags(kubernetes_agent_on_gitlab_com: project)
- end
-
- it 'returns true' do
- expect(described_class.included_in_gitlab_com_rollout?(project)).to be_truthy
- end
-
- it 'returns false for another project' do
- expect(described_class.included_in_gitlab_com_rollout?(create(:project))).to be_falsey
- end
- end
- end
- end
end