Commit 71729b38 authored by Luke Duncalfe's avatar Luke Duncalfe

Prefer build() rather than create()

parent 7a10ef6e
...@@ -2,7 +2,7 @@ require 'spec_helper' ...@@ -2,7 +2,7 @@ require 'spec_helper'
describe Gitlab::DataBuilder::Push do describe Gitlab::DataBuilder::Push do
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
let(:user) { create(:user) } let(:user) { build(:user) }
describe '.build_sample' do describe '.build_sample' do
let(:data) { described_class.build_sample(project, user) } let(:data) { described_class.build_sample(project, user) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment