require'spec_helper'describeMergeRequest::Metrics,models: truedolet(:project){create(:project)}subject{create(:merge_request,source_project: project)}describe"when recording the default set of metrics on merge request save"doit"records the merge time"dotime=Time.nowTimecop.freeze(time){subject.mark_as_merged}metrics=subject.metricsexpect(metrics).tobe_present