diff options
Diffstat (limited to 'spec/migrations/move_limits_from_plans_spec.rb')
-rw-r--r-- | spec/migrations/move_limits_from_plans_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/migrations/move_limits_from_plans_spec.rb b/spec/migrations/move_limits_from_plans_spec.rb index 16f94ba6dbb..a7a7d540ed3 100644 --- a/spec/migrations/move_limits_from_plans_spec.rb +++ b/spec/migrations/move_limits_from_plans_spec.rb @@ -7,7 +7,6 @@ RSpec.describe MoveLimitsFromPlans do let(:plans) { table(:plans) } let(:plan_limits) { table(:plan_limits) } - let!(:early_adopter_plan) { plans.create(name: 'early_adopter', title: 'Early adopter', active_pipelines_limit: 10, pipeline_size_limit: 11, active_jobs_limit: 12) } let!(:gold_plan) { plans.create(name: 'gold', title: 'Gold', active_pipelines_limit: 20, pipeline_size_limit: 21, active_jobs_limit: 22) } let!(:silver_plan) { plans.create(name: 'silver', title: 'Silver', active_pipelines_limit: 30, pipeline_size_limit: 31, active_jobs_limit: 32) } let!(:bronze_plan) { plans.create(name: 'bronze', title: 'Bronze', active_pipelines_limit: 40, pipeline_size_limit: 41, active_jobs_limit: 42) } @@ -16,7 +15,7 @@ RSpec.describe MoveLimitsFromPlans do describe 'migrate' do it 'populates plan_limits from all the records in plans' do - expect { migrate! }.to change { plan_limits.count }.by 6 + expect { migrate! }.to change { plan_limits.count }.by 5 end it 'copies plan limits and plan.id into to plan_limits table' do @@ -24,7 +23,6 @@ RSpec.describe MoveLimitsFromPlans do new_data = plan_limits.pluck(:plan_id, :ci_active_pipelines, :ci_pipeline_size, :ci_active_jobs) expected_data = [ - [early_adopter_plan.id, 10, 11, 12], [gold_plan.id, 20, 21, 22], [silver_plan.id, 30, 31, 32], [bronze_plan.id, 40, 41, 42], |