From 58d227e76ad5f85a349cb7eae7467de98c13ae2f Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Thu, 1 Nov 2012 08:28:40 +1100 Subject: [PATCH] Home controller and product model specs pass --- spec/controllers/home_controller_spec.rb | 4 ++-- spec/models/product_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)