diff options
author | Jarka Kadlecová <jarka@gitlab.com> | 2018-01-05 12:15:03 +0300 |
---|---|---|
committer | Jarka Kadlecová <jarka@gitlab.com> | 2018-01-05 15:40:31 +0300 |
commit | 153ea1830153b7d7c3be5ac2e7ca60486c9b2700 (patch) | |
tree | fe7010401e568032637b0c5c37c49eeb8d7226fc /spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb | |
parent | 304851dc90c06d770042bf3cb0af887b6f3497e4 (diff) |
Refactor matchers for background migrations
Diffstat (limited to 'spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb')
-rw-r--r-- | spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb b/spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb index 0e884a7d910..65ec07da31c 100644 --- a/spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb +++ b/spec/migrations/schedule_create_gpg_key_subkeys_from_gpg_keys_spec.rb @@ -2,18 +2,6 @@ require 'spec_helper' require Rails.root.join('db', 'post_migrate', '20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys') describe ScheduleCreateGpgKeySubkeysFromGpgKeys, :migration, :sidekiq do - 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 create(:gpg_key, id: 1, key: GpgHelpers::User1.public_key) create(:gpg_key, id: 2, key: GpgHelpers::User3.public_key) |