summaryrefslogtreecommitdiff
path: root/spec/models/deployment_merge_request_spec.rb
blob: 29834691fa4b4a270b80dc6983d3868b582ed437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe DeploymentMergeRequest do
  let(:mr) { create(:merge_request, :merged) }
  let(:deployment) { create(:deployment, :success, project: project) }
  let(:project) { mr.project }

  subject { described_class.new(deployment: deployment, merge_request: mr) }

  it { is_expected.to belong_to(:deployment).required }
  it { is_expected.to belong_to(:merge_request).required }
end