frankfurter/spec/currency_patches_spec.rb
BadMark d0a43e357a
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / publish (push) Has been cancelled
CI/CD Pipeline / release (push) Has been cancelled
up
2026-05-21 01:38:14 -06:00

17 lines
482 B
Ruby

# 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