Skip to content

Commit

Permalink
Merge pull request solidusio#5680 from nebulab/spaghetticode/money-fix
Browse files Browse the repository at this point in the history
Fix specs failing after Money 6.18.0 release
  • Loading branch information
spaghetticode authored Mar 6, 2024
2 parents 49e3da4 + 2b88945 commit 7d380c9
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 7d380c9

Please sign in to comment.