debian-mirror-gitlab/spec/migrations/20211214012507_backfill_incident_issue_escalation_statuses_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
660 B
Ruby
Raw Normal View History

2022-03-02 08:16:31 +05:30
# frozen_string_literal: true
require 'spec_helper'
require_migration!
RSpec.describe BackfillIncidentIssueEscalationStatuses do
let(:namespaces) { table(:namespaces) }
let(:projects) { table(:projects) }
let(:issues) { table(:issues) }
let(:namespace) { namespaces.create!(name: 'foo', path: 'foo') }
let(:project) { projects.create!(namespace_id: namespace.id) }
2022-06-21 17:19:12 +05:30
# Backfill removed - see db/migrate/20220321234317_remove_all_issuable_escalation_statuses.rb.
it 'does nothing' do
issues.create!(project_id: project.id, issue_type: 1)
2022-03-02 08:16:31 +05:30
2022-06-21 17:19:12 +05:30
expect { migrate! }.not_to change { BackgroundMigrationWorker.jobs.size }
2022-03-02 08:16:31 +05:30
end
end