diff options
Diffstat (limited to 'spec/migrations/20220513043344_reschedule_expire_o_auth_tokens_spec.rb')
-rw-r--r-- | spec/migrations/20220513043344_reschedule_expire_o_auth_tokens_spec.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/spec/migrations/20220513043344_reschedule_expire_o_auth_tokens_spec.rb b/spec/migrations/20220513043344_reschedule_expire_o_auth_tokens_spec.rb deleted file mode 100644 index b03849b61a2..00000000000 --- a/spec/migrations/20220513043344_reschedule_expire_o_auth_tokens_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' -require_migration! - -RSpec.describe RescheduleExpireOAuthTokens, feature_category: :system_access do - let!(:migration) { described_class::MIGRATION } - - describe '#up' do - it 'schedules background jobs for each batch of oauth tokens' do - migrate! - - expect(migration).to( - have_scheduled_batched_migration( - table_name: :oauth_access_tokens, - column_name: :id, - interval: described_class::INTERVAL - ) - ) - end - end - - describe '#down' do - it 'deletes all batched migration records' do - migrate! - schema_migrate_down! - - expect(migration).not_to have_scheduled_batched_migration - end - end -end |