summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLuke Duncalfe <lduncalfe@eml.cc>2019-01-15 15:17:21 +1300
committerLuke Duncalfe <lduncalfe@eml.cc>2019-01-15 15:59:10 +1300
commit71729b38c54bafb440c3a588bc88d8e6346654ce (patch)
tree01303917da08b8e259053576b2f0ed22875df204 /spec
parent7a10ef6e751e643b482a171a305c4ce485b1b039 (diff)
downloadgitlab-ce-71729b38c54bafb440c3a588bc88d8e6346654ce.tar.gz
Prefer build() rather than create()
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/data_builder/push_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/data_builder/push_spec.rb b/spec/lib/gitlab/data_builder/push_spec.rb
index befdc18d1aa..d70438ba27c 100644
--- a/spec/lib/gitlab/data_builder/push_spec.rb
+++ b/spec/lib/gitlab/data_builder/push_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
describe Gitlab::DataBuilder::Push do
let(:project) { create(:project, :repository) }
- let(:user) { create(:user) }
+ let(:user) { build(:user) }
describe '.build_sample' do
let(:data) { described_class.build_sample(project, user) }