Sha256: b9d0423b9a3c5a7a9f5a311573332ffa1cbead615c71543fe22aef570eb0d0c4
Contents?: true
Size: 361 Bytes
Versions: 18
Compression:
Stored size: 361 Bytes
Contents
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
18 entries across 18 versions & 1 rubygems