Home controller and product model specs pass

This commit is contained in:
Rohan Mitchell
2012-11-01 08:28:40 +11:00
parent fb9f59213f
commit 58d227e76a
2 changed files with 3 additions and 3 deletions

View File

@@ -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])

View File

@@ -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)