mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Implemented simlified shop flow.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user