This commit is contained in:
Rohan Mitchell
2013-06-17 10:03:00 +10:00
parent bfe8184b6a
commit 95de78f24e
2 changed files with 2 additions and 2 deletions

View File

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

View File

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