frankfurter/spec/currency_names_spec.rb

19 lines
373 B
Ruby
Raw Normal View History

2018-10-10 14:39:25 +02:00
# frozen_string_literal: true
require_relative "helper"
require "currency_names"
2018-10-10 14:39:25 +02:00
describe CurrencyNames do
let(:currency_names) do
CurrencyNames.new
end
it "returns currency codes and names" do
_(currency_names.formatted["USD"]).must_equal("United States Dollar")
2018-10-10 14:39:25 +02:00
end
it "has a cache key" do
_(currency_names.cache_key).wont_be(:empty?)
2018-10-10 14:39:25 +02:00
end
end