2021-03-08 18:12:59 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Gitlab::Analytics::CycleAnalytics::StageEvents::IssueDeployedToProduction do
|
|
|
|
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) do
|
|
|
|
mr_closing_issue = FactoryBot.create(:merge_requests_closing_issues)
|
|
|
|
mr = mr_closing_issue.merge_request
|
|
|
|
mr.metrics.update!(first_deployed_to_production_at: Time.current)
|
|
|
|
|
|
|
|
mr_closing_issue.issue
|
|
|
|
end
|
|
|
|
|
|
|
|
let_it_be(:record_without_data) { create(:issue) }
|
|
|
|
end
|
2021-03-08 18:12:59 +05:30
|
|
|
end
|