2019-12-21 20:55:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe Gitlab::Analytics::CycleAnalytics::StageEvents::MergeRequestMerged do
|
2021-01-29 00:20:46 +05:30
|
|
|
it_behaves_like 'value stream analytics event'
|
2021-11-18 22:05:49 +05:30
|
|
|
|
|
|
|
it_behaves_like 'LEFT JOIN-able value stream analytics event' do
|
|
|
|
let_it_be(:record_with_data) { create(:merge_request).tap { |mr| mr.metrics.update!(merged_at: Time.current) } }
|
|
|
|
let_it_be(:record_without_data) { create(:merge_request) }
|
|
|
|
end
|
2019-12-21 20:55:43 +05:30
|
|
|
end
|