mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
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:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user