diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-06 16:07:55 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-06 18:01:14 +0100 |
commit | c181683d99e4447c44a5963afe3c2680f0c82a9a (patch) | |
tree | 29614bbd83e1ef745e9f9cad3bd3314e6e1f97d1 /spec/migrations | |
parent | fefb8ef74f2c269f1aecffc59fba32eb90c8ba73 (diff) | |
download | gitlab-ce-c181683d99e4447c44a5963afe3c2680f0c82a9a.tar.gz |
Fix rubocop offense in build stage migration classes
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/schedule_build_stage_migration_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/migrations/schedule_build_stage_migration_spec.rb b/spec/migrations/schedule_build_stage_migration_spec.rb index 79f00fdbcf0..b475e1fe7de 100644 --- a/spec/migrations/schedule_build_stage_migration_spec.rb +++ b/spec/migrations/schedule_build_stage_migration_spec.rb @@ -8,6 +8,8 @@ describe ScheduleBuildStageMigration, :migration do let(:jobs) { table(:ci_builds) } before do + stub_const("#{described_class}::BATCH", 1) + ## # Dependencies # @@ -24,10 +26,6 @@ describe ScheduleBuildStageMigration, :migration do jobs.create!(id: 4109, commit_id: 1, project_id: 123, stage_id: 1) end - before do - stub_const("#{described_class}::BATCH", 1) - end - it 'schedules delayed background migrations in batches in bulk' do Sidekiq::Testing.fake! do Timecop.freeze do |