mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Replace create with build_stubbed in coordinator model specs
This commit is contained in:
@@ -5,7 +5,12 @@ require 'spec_helper'
|
||||
module OrderManagement
|
||||
module Stock
|
||||
describe Coordinator do
|
||||
let!(:order) { create(:order_with_line_items, distributor: create(:distributor_enterprise)) }
|
||||
let!(:order) do
|
||||
build_stubbed(
|
||||
:order_with_line_items,
|
||||
distributor: build_stubbed(:distributor_enterprise)
|
||||
)
|
||||
end
|
||||
|
||||
subject { Coordinator.new(order) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user