Remove redundant spec context

This is already tested by the top-most before block and besides, we
there's no OFN in Japan. We don't need to test all supported currencies
but ensure that the various arguments work as intended.
This commit is contained in:
Pau Perez
2021-03-08 11:02:46 +01:00
parent 5f01fcd902
commit e355a00724

View File

@@ -84,21 +84,6 @@ describe Spree::Money do
end
end
context "JPY" do
before do
configure_spree_preferences do |config|
config.currency = "JPY"
config.currency_symbol_position = :before
config.display_currency = false
end
end
it "formats correctly" do
money = Spree::Money.new(1000, html: false)
expect(money.to_s).to eq("¥1,000")
end
end
context "EUR" do
before do
configure_spree_preferences do |config|