debian-mirror-gitlab/spec/migrations/20230224085743_update_issues_internal_id_scope_spec.rb
2023-05-27 22:25:52 +05:30

29 lines
738 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
require_migration!
RSpec.describe UpdateIssuesInternalIdScope, feature_category: :team_planning do
describe '#up' do
it 'schedules background migration' do
migrate!
expect(described_class::MIGRATION).to have_scheduled_batched_migration(
table_name: :internal_ids,
column_name: :id,
interval: described_class::INTERVAL)
end
end
describe '#down' do
it 'does not schedule background migration' do
schema_migrate_down!
expect(described_class::MIGRATION).not_to have_scheduled_batched_migration(
table_name: :internal_ids,
column_name: :id,
interval: described_class::INTERVAL)
end
end
end