2020-08-30 20:10:37 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe MergeRequestReviewer do
|
|
|
|
let(:merge_request) { create(:merge_request) }
|
|
|
|
|
|
|
|
subject { merge_request.merge_request_reviewers.build(reviewer: create(:user)) }
|
|
|
|
|
|
|
|
describe 'associations' do
|
|
|
|
it { is_expected.to belong_to(:merge_request).class_name('MergeRequest') }
|
2020-11-23 13:09:14 -05:00
|
|
|
it { is_expected.to belong_to(:reviewer).class_name('User').inverse_of(:merge_request_reviewers) }
|
2020-08-30 20:10:37 -04:00
|
|
|
end
|
|
|
|
end
|