summaryrefslogtreecommitdiff
path: root/spec/migrations
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-06 16:07:55 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-06 18:01:14 +0100
commitc181683d99e4447c44a5963afe3c2680f0c82a9a (patch)
tree29614bbd83e1ef745e9f9cad3bd3314e6e1f97d1 /spec/migrations
parentfefb8ef74f2c269f1aecffc59fba32eb90c8ba73 (diff)
downloadgitlab-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.rb6
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