summaryrefslogtreecommitdiff
path: root/spec/migrations/20220502015011_clean_up_fix_merge_request_diff_commit_users_spec.rb
blob: 47d407618d252ea559b1188f70c518816d15275f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'
require_migration! 'clean_up_fix_merge_request_diff_commit_users'

RSpec.describe CleanUpFixMergeRequestDiffCommitUsers, :migration, feature_category: :code_review_workflow do
  let(:namespaces) { table(:namespaces) }
  let(:projects) { table(:projects) }
  let(:project_namespace) { namespaces.create!(name: 'project2', path: 'project2', type: 'Project') }
  let(:namespace) { namespaces.create!(name: 'foo', path: 'foo') }

  describe '#up' do
    it 'finalizes the background migration' do
      expect(described_class).to be_finalize_background_migration_of('FixMergeRequestDiffCommitUsers')

      migrate!
    end
  end
end