debian-mirror-gitlab/spec/models/merge_request_reviewer_spec.rb

15 lines
448 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# 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') }
2021-02-22 17:27:13 +05:30
it { is_expected.to belong_to(:reviewer).class_name('User').inverse_of(:merge_request_reviewers) }
2020-11-24 15:15:51 +05:30
end
end