Sha256: 54d6ab1dad6b72961822c811b211cf4012545c2d08a2710aeced90921535e213
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
require 'spec_helper' class Money module Bank describe SingleCurrency do describe "#exchange_with" do it "raises when called" do expect { subject.exchange_with(Money.new(100, 'USD'), 'EUR') }.to raise_exception(DifferentCurrencyError, "No exchanging of currencies allowed: 1.00 USD to EUR") end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money-6.6.1 | spec/bank/single_currency_spec.rb |
money-6.6.0 | spec/bank/single_currency_spec.rb |