summaryrefslogtreecommitdiff
path: root/spec/services/ci/copy_cross_database_associations_service_spec.rb
blob: 5938ac258d004a2784999c2e01b57d01f7724f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Ci::CopyCrossDatabaseAssociationsService do
  let_it_be(:project) { create(:project) }
  let_it_be(:pipeline) { create(:ci_pipeline, project: project) }
  let_it_be(:old_build) { create(:ci_build, pipeline: pipeline) }
  let_it_be(:new_build) { create(:ci_build, pipeline: pipeline) }

  subject(:execute) { described_class.new.execute(old_build, new_build) }

  describe '#execute' do
    it 'returns a success response' do
      expect(execute).to be_success
    end
  end
end