Commit d99e0b64 authored by Fabio Pitino's avatar Fabio Pitino

Merge branch 'remove-unused-ci-yaml-stub' into 'master'

Remove unused CI YAML stub from limit specs

See merge request gitlab-org/gitlab!46940
parents dc0b2ff9 bf7b53a0
......@@ -20,21 +20,12 @@ RSpec.describe EE::Gitlab::Ci::Pipeline::Quota::Size do
shared_context 'pipeline size limit exceeded' do
before do
config = YAML.dump({
rspec: { script: 'rspec' },
spinach: { script: 'spinach' }
})
stub_ci_pipeline_yaml_file(config)
plan_limits.update!(ci_pipeline_size: 1)
end
end
shared_context 'pipeline size limit not exceeded' do
before do
config = YAML.dump({
rspec: { script: 'rspec' }
})
stub_ci_pipeline_yaml_file(config)
plan_limits.update!(ci_pipeline_size: 2)
end
end
......
......@@ -25,10 +25,6 @@ RSpec.describe ::Gitlab::Ci::Pipeline::Chain::Limit::Size do
gold_plan = create(:gold_plan)
create(:plan_limits, plan: gold_plan, ci_pipeline_size: 1)
create(:gitlab_subscription, namespace: namespace, hosted_plan: gold_plan)
stub_ci_pipeline_yaml_file(YAML.dump({
rspec: { script: 'rspec' },
spinach: { script: 'spinach' }
}))
end
context 'when saving incomplete pipelines' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment