mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Tidy-ups
This commit is contained in:
@@ -16,7 +16,7 @@ Spree::OrderPopulator.class_eval do
|
||||
|
||||
populate_without_distribution_validation(from_hash) if valid?
|
||||
|
||||
# Undo distribution setting if validation falied when adding a product
|
||||
# Undo distribution setting if validation failed when adding a product
|
||||
if !valid? && cart_distribution_set
|
||||
set_cart_distributor_and_order_cycle @orig_distributor, @orig_order_cycle
|
||||
end
|
||||
|
||||
@@ -182,7 +182,7 @@ feature %q{
|
||||
Spree::Order.last.line_items.should be_empty
|
||||
end
|
||||
|
||||
scenario "adding the first product to the cart", js: true do
|
||||
scenario "adding the first product to the cart" do
|
||||
# Given a product and a distributor
|
||||
d = create(:distributor_enterprise)
|
||||
p = create(:product, :price => 12.34)
|
||||
|
||||
Reference in New Issue
Block a user