Commit bf7b53a0 authored by Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason

Remove unused CI YAML stub from limit specs

parent bd71bb53
......@@ -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