2019-11-06 19:06:18 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 14:09:03 -04:00
|
|
|
RSpec.describe DeploymentMergeRequest do
|
2019-11-06 19:06:18 -05:00
|
|
|
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
|