From 90a93e7879ba369abc5b179bf887ac5acd974aef Mon Sep 17 00:00:00 2001 From: andrea longhi Date: Tue, 5 Mar 2024 10:26:38 +0100 Subject: [PATCH] Fix specs failing after Money 6.18.0 release The release includes https://github.com/RubyMoney/money/pull/1026 which replaces the html entity for EURO with its symbol. (cherry picked from commit 2b889450ac69b86c9e06143907d87cfd7445f75d) --- core/spec/lib/spree/money_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/spec/lib/spree/money_spec.rb b/core/spec/lib/spree/money_spec.rb index 5ae6dcf52b6..12ee9067b70 100644 --- a/core/spec/lib/spree/money_spec.rb +++ b/core/spec/lib/spree/money_spec.rb @@ -148,13 +148,13 @@ it "formats as HTML if asked (nicely) to" do money = Spree::Money.new(10, format: '%n %u') # The HTML'ified version of "10.00 €" - expect(money.to_html).to eq("10.00 ") + expect(money.to_html).to eq("10.00 ") end it "formats as HTML with currency" do money = Spree::Money.new(10, format: '%n %u', with_currency: true) # The HTML'ified version of "10.00 €" - expect(money.to_html).to eq("10.00 EUR") + expect(money.to_html).to eq("10.00 EUR") end end