Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/ci/pipelines_helper_spec.rb')
-rw-r--r--spec/helpers/ci/pipelines_helper_spec.rb71
1 files changed, 1 insertions, 70 deletions
diff --git a/spec/helpers/ci/pipelines_helper_spec.rb b/spec/helpers/ci/pipelines_helper_spec.rb
index 477c07bf3e3..1a5c036b4f1 100644
--- a/spec/helpers/ci/pipelines_helper_spec.rb
+++ b/spec/helpers/ci/pipelines_helper_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-RSpec.describe Ci::PipelinesHelper do
+RSpec.describe Ci::PipelinesHelper, feature_category: :continuous_integration do
include Devise::Test::ControllerHelpers
describe 'pipeline_warnings' do
@@ -99,75 +99,6 @@ RSpec.describe Ci::PipelinesHelper do
:full_path,
:visibility_pipeline_id_type])
end
-
- describe 'when the project is eligible for the `ios_specific_templates` experiment' do
- let_it_be(:project) { create(:project, :auto_devops_disabled, shared_runners_enabled: false) }
- let_it_be(:user) { create(:user) }
-
- before do
- allow(helper).to receive(:current_user).and_return(user)
- project.add_developer(user)
- create(:project_setting, project: project, target_platforms: %w[ios])
- end
-
- describe 'the `registration_token` attribute' do
- subject { data[:registration_token] }
-
- context 'when the `ios_specific_templates` experiment variant is control' do
- before do
- stub_experiments(ios_specific_templates: :control)
- end
-
- it { is_expected.to be_nil }
- end
-
- context 'when the `ios_specific_templates` experiment variant is candidate' do
- before do
- stub_experiments(ios_specific_templates: :candidate)
- end
-
- context 'when the user cannot register project runners' do
- before do
- allow(helper).to receive(:can?).with(user, :register_project_runners, project).and_return(false)
- end
-
- it { is_expected.to be_nil }
- end
-
- context 'when the user can register project runners' do
- it { is_expected.to eq(project.runners_token) }
- end
- end
- end
-
- describe 'the `ios_runners_available` attribute', :saas do
- subject { data[:ios_runners_available] }
-
- context 'when the `ios_specific_templates` experiment variant is control' do
- before do
- stub_experiments(ios_specific_templates: :control)
- end
-
- it { is_expected.to be_nil }
- end
-
- context 'when the `ios_specific_templates` experiment variant is candidate' do
- before do
- stub_experiments(ios_specific_templates: :candidate)
- end
-
- context 'when shared runners are not enabled' do
- it { is_expected.to eq('false') }
- end
-
- context 'when shared runners are enabled' do
- let_it_be(:project) { create(:project, :auto_devops_disabled, shared_runners_enabled: true) }
-
- it { is_expected.to eq('true') }
- end
- end
- end
- end
end
describe '#visibility_pipeline_id_type' do