diff options
author | Luke Duncalfe <lduncalfe@eml.cc> | 2019-01-15 15:17:21 +1300 |
---|---|---|
committer | Luke Duncalfe <lduncalfe@eml.cc> | 2019-01-15 15:59:10 +1300 |
commit | 71729b38c54bafb440c3a588bc88d8e6346654ce (patch) | |
tree | 01303917da08b8e259053576b2f0ed22875df204 /spec | |
parent | 7a10ef6e751e643b482a171a305c4ce485b1b039 (diff) | |
download | gitlab-ce-71729b38c54bafb440c3a588bc88d8e6346654ce.tar.gz |
Prefer build() rather than create()
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/data_builder/push_spec.rb | 2 |
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) } |