frankfurter/spec/currency_names_spec.rb
2018-10-10 13:55:55 +01:00

19 lines
365 B
Ruby

# frozen_string_literal: true
require_relative 'helper'
require 'currency_names'
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'
end
it 'has a cache key' do
currency_names.cache_key.wont_be :empty?
end
end