diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb index 9fcbd3dd2e..b52dcae435 100644 --- a/spec/controllers/home_controller_spec.rb +++ b/spec/controllers/home_controller_spec.rb @@ -11,8 +11,8 @@ describe Spree::HomeController do it "splits products by local/remote distributor when distributor is selected" do # Given two distributors with a product under each - d1 = create(:distributor) - d2 = create(:distributor) + d1 = create(:distributor_enterprise) + d2 = create(:distributor_enterprise) p1 = create(:product, :distributors => [d1]) p2 = create(:product, :distributors => [d2]) diff --git a/spec/models/product_spec.rb b/spec/models/product_spec.rb index dd0d8490b9..cc74db8638 100644 --- a/spec/models/product_spec.rb +++ b/spec/models/product_spec.rb @@ -29,7 +29,7 @@ describe Spree::Product do end it "raises an error if distributor is not found" do - distributor = create(:distributor) + distributor = create(:distributor_enterprise) product = create(:product) expect do product.shipping_method_for_distributor(distributor)