Implemented simlified shop flow.

This commit is contained in:
alexs333
2013-09-04 20:32:21 +10:00
parent 25b25b7681
commit 999bc2697a
19 changed files with 181 additions and 96 deletions

View File

@@ -209,7 +209,7 @@ describe Spree::Order do
subject.distributor = test_enterprise
subject.should_not be_valid
subject.errors.messages.should == {distributor_id: ["cannot supply the products in your cart"]}
subject.errors.messages.should == {:base => ["Distributor or order cycle cannot supply the products in your cart"]}
end
end

View File

@@ -64,7 +64,7 @@ module Spree
Product.in_distributor(d1).should == [p1]
end
it "doesn't show products listed in the incoming exchange only" do
it "doesn't show products listed in the incoming exchange only", :future => true do
s = create(:supplier_enterprise)
c = create(:distributor_enterprise)
d = create(:distributor_enterprise)