Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

failing spec for #issue/7 when going from larger :subunit_to_unit to

smaller :subunit_to_unit
  • Loading branch information...
commit e9e64451a1b3390ffb1a187f0b614856399de6e9 1 parent 7ba7f5a
@semmons99 semmons99 authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/exchange_bank_spec.rb
View
7 test/exchange_bank_spec.rb
@@ -64,5 +64,12 @@
@bank.exchange(1000, 'TND', 'USD').should == 67
end
end
+
+ context 'USD to TND using a rate of 1.32862' do
+ it 'returns the correct amount' do
+ @bank.add_rate('USD', 'TND', 1.32862)
+ @bank.exchange(1000, 'USD', 'TND').should == 13286
+ end
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.