Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorJarka Kadlecová <jarka@gitlab.com>2018-01-05 12:15:03 +0300
committerJarka Kadlecová <jarka@gitlab.com>2018-01-05 15:40:31 +0300
commit153ea1830153b7d7c3be5ac2e7ca60486c9b2700 (patch)
treefe7010401e568032637b0c5c37c49eeb8d7226fc /spec/lib
parent304851dc90c06d770042bf3cb0af887b6f3497e4 (diff)
Refactor matchers for background migrations
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/background_migration/prepare_untracked_uploads_spec.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/spec/lib/gitlab/background_migration/prepare_untracked_uploads_spec.rb b/spec/lib/gitlab/background_migration/prepare_untracked_uploads_spec.rb
index cd3f1a45270..8bb9ebe0419 100644
--- a/spec/lib/gitlab/background_migration/prepare_untracked_uploads_spec.rb
+++ b/spec/lib/gitlab/background_migration/prepare_untracked_uploads_spec.rb
@@ -2,21 +2,10 @@ require 'spec_helper'
describe Gitlab::BackgroundMigration::PrepareUntrackedUploads, :sidekiq do
include TrackUntrackedUploadsHelpers
+ include MigrationsHelpers
let!(:untracked_files_for_uploads) { described_class::UntrackedFile }
- matcher :be_scheduled_migration do |*expected|
- match do |migration|
- BackgroundMigrationWorker.jobs.any? do |job|
- job['args'] == [migration, expected]
- end
- end
-
- failure_message do |migration|
- "Migration `#{migration}` with args `#{expected.inspect}` not scheduled!"
- end
- end
-
before do
DatabaseCleaner.clean