summaryrefslogtreecommitdiff
path: root/spec/models/merge_request
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-26 17:44:58 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-01-26 17:44:59 -0500
commitfcb37542e746d69f20094e2918e498564bbcd863 (patch)
treef275f062ac4df997a54f5cbbefa4b4104eb7e6ad /spec/models/merge_request
parentf27721e842b608f4a63bd0bc59ce77175ae530ca (diff)
downloadgitlab-ce-fcb37542e746d69f20094e2918e498564bbcd863.tar.gz
Use `:empty_project` where possible in model specsrs-empty_project-models
Diffstat (limited to 'spec/models/merge_request')
-rw-r--r--spec/models/merge_request/metrics_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/models/merge_request/metrics_spec.rb b/spec/models/merge_request/metrics_spec.rb
index 255db41cb19..9afed311e27 100644
--- a/spec/models/merge_request/metrics_spec.rb
+++ b/spec/models/merge_request/metrics_spec.rb
@@ -1,9 +1,7 @@
require 'spec_helper'
describe MergeRequest::Metrics, models: true do
- let(:project) { create(:project) }
-
- subject { create(:merge_request, source_project: project) }
+ subject { create(:merge_request) }
describe "when recording the default set of metrics on merge request save" do
it "records the merge time" do