Commit c73a3254 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Use `build` instead of build stubbed

This avoids issues when mixing stubbed models with real models.
parent fd21d1b7
......@@ -218,7 +218,7 @@ describe Projects::UpdateMirrorService do
it "success" do
expect(project.mirror?).to eq(false)
result = described_class.new(project, build_stubbed(:user)).execute
result = described_class.new(project, create(:user)).execute
expect(result[:status]).to eq(:success)
end
......
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