Skip to content

Commit

Permalink
Fix products helper spec setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mamhoff committed Sep 23, 2022
1 parent d010438 commit 772735d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/spec/helpers/products_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ module Spree
let(:currency) { 'JPY' }

before do
variant
product.prices.update_all(currency: currency)
variant.prices.each { |p| p.update(currency: currency) }
product.master.prices.each { |p| p.update(currency: currency) }
end

context "when variant is more than master" do
Expand Down Expand Up @@ -92,8 +92,8 @@ module Spree
let(:variant_price) { 150 }

before do
variant
product.prices.update_all(currency: currency)
variant.prices.each { |p| p.update(currency: currency) }
product.master.prices.each { |p| p.update(currency: currency) }
end

it "should return the variant price if the price is different than master" do
Expand Down

0 comments on commit 772735d

Please sign in to comment.