Skip to content

Commit

Permalink
Merge pull request #5749 from solidusio/backport/v4.1/pr-5680
Browse files Browse the repository at this point in the history
[v4.1] Fix specs failing after Money 6.18.0 release
  • Loading branch information
tvdeyen authored Oct 18, 2024
2 parents db69bcb + 90a93e7 commit a59f56a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/spec/lib/spree/money_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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("<span class=\"money-whole\">10</span><span class=\"money-decimal-mark\">.</span><span class=\"money-decimal\">00</span> <span class=\"money-currency-symbol\">&#x20AC;</span>")
expect(money.to_html).to eq("<span class=\"money-whole\">10</span><span class=\"money-decimal-mark\">.</span><span class=\"money-decimal\">00</span> <span class=\"money-currency-symbol\"></span>")
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("<span class=\"money-whole\">10</span><span class=\"money-decimal-mark\">.</span><span class=\"money-decimal\">00</span> <span class=\"money-currency-symbol\">&#x20AC;</span> <span class=\"money-currency\">EUR</span>")
expect(money.to_html).to eq("<span class=\"money-whole\">10</span><span class=\"money-decimal-mark\">.</span><span class=\"money-decimal\">00</span> <span class=\"money-currency-symbol\"></span> <span class=\"money-currency\">EUR</span>")
end
end

Expand Down

0 comments on commit a59f56a

Please sign in to comment.