2016-09-19 03:26:25 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2017-07-10 10:24:02 -04:00
|
|
|
describe MergeRequest::Metrics do
|
2017-12-07 12:41:30 -05:00
|
|
|
subject { described_class.new }
|
2016-09-19 03:26:25 -04:00
|
|
|
|
2017-12-07 12:41:30 -05:00
|
|
|
describe 'associations' do
|
|
|
|
it { is_expected.to belong_to(:merge_request) }
|
|
|
|
it { is_expected.to belong_to(:latest_closed_by).class_name('User') }
|
|
|
|
it { is_expected.to belong_to(:merged_by).class_name('User') }
|
2016-09-19 03:26:25 -04:00
|
|
|
end
|
|
|
|
end
|