File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 148
148
it "formats as HTML if asked (nicely) to" do
149
149
money = Spree ::Money . new ( 10 , format : '%n %u' )
150
150
# The HTML'ified version of "10.00 €"
151
- 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>" )
151
+ 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>" )
152
152
end
153
153
154
154
it "formats as HTML with currency" do
155
155
money = Spree ::Money . new ( 10 , format : '%n %u' , with_currency : true )
156
156
# The HTML'ified version of "10.00 €"
157
- 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>" )
157
+ 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>" )
158
158
end
159
159
end
160
160
You can’t perform that action at this time.
0 commit comments