frankfurter/spec/currency_patches_spec.rb

18 lines
482 B
Ruby
Raw Permalink Normal View History

2026-05-21 01:38:14 -06:00
# frozen_string_literal: true
require_relative "helper"
require "currency_patches"
describe "Currency patches" do
it "applies all patches to the Money gem" do
seeds = JSON.parse(File.read(File.expand_path("../db/seeds/currency_patches.json", __dir__)))
seeds.each do |entry|
currency = Money::Currency.find(entry["iso_code"])
_(currency).wont_be_nil("#{entry["iso_code"]} not registered")
_(currency.name).must_equal(entry["name"])
end
end
end