From fcce858ea445b4f2214a35d35ae6434cc3128a4f Mon Sep 17 00:00:00 2001 From: stveep Date: Sat, 25 Feb 2017 12:18:59 +0000 Subject: [PATCH] Fix OC with override factory --- spec/factories.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/factories.rb b/spec/factories.rb index cc582f7f69..3a46afa718 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -74,7 +74,7 @@ FactoryGirl.define do factory :order_cycle_with_overrides, parent: :order_cycle do after (:create) do |oc| oc.variants.each do |variant| - create(:variant_override, variant: variant, hub: oc.coordinator, price: variant.price + 100) + create(:variant_override, variant: variant, hub: oc.distributor, price: variant.price + 100) end end end