From 1950b94cb9e067f0c903bb6568ca66d73d03d1b5 Mon Sep 17 00:00:00 2001 From: Josh Powell Date: Mon, 23 Apr 2018 14:02:13 -0400 Subject: [PATCH 1/2] Deprecation fix: to saved_changes? --- app/models/spree/line_item_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/line_item_decorator.rb b/app/models/spree/line_item_decorator.rb index 148e960e..0226f587 100644 --- a/app/models/spree/line_item_decorator.rb +++ b/app/models/spree/line_item_decorator.rb @@ -40,7 +40,7 @@ def quantity_by_variant private def update_inventory - if (changed? || target_shipment.present?) && + if (saved_changes? || target_shipment.present?) && order.has_checkout_step?("delivery") if product.assembly? OrderInventoryAssembly.new(self).verify(target_shipment) From 17fdb3c98834c593e6f57a49f84511f0f44d7554 Mon Sep 17 00:00:00 2001 From: Josh Powell Date: Mon, 8 Oct 2018 11:08:39 -0400 Subject: [PATCH 2/2] Adds webdriver gem --- spec/support/capybara.rb | 1 + spree_product_assembly.gemspec | 1 + 2 files changed, 2 insertions(+) diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 960eddd3..0715453f 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -2,6 +2,7 @@ require 'capybara/rails' require 'capybara-screenshot/rspec' require 'selenium-webdriver' +require 'webdrivers' Capybara.register_driver :chrome do |app| Capybara::Selenium::Driver.new app, diff --git a/spree_product_assembly.gemspec b/spree_product_assembly.gemspec index 3a8e66ec..4522485d 100644 --- a/spree_product_assembly.gemspec +++ b/spree_product_assembly.gemspec @@ -28,6 +28,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'launchy' s.add_development_dependency 'pg', '~> 0.18' s.add_development_dependency 'selenium-webdriver' + s.add_development_dependency 'webdrivers' s.add_development_dependency 'rspec-rails' s.add_development_dependency 'sass-rails' s.add_development_dependency 'simplecov'