Skip to content

Commit

Permalink
money version bump / strange workaround with JPY
Browse files Browse the repository at this point in the history
  • Loading branch information
slbug committed Nov 2, 2011
1 parent 20d68a5 commit 724cfd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nbrb_currency.gemspec
Expand Up @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)

Gem::Specification.new do |s|
s.name = "nbrb_currency"
s.version = "1.0.0"
s.version = "1.0.1"
s.platform = Gem::Platform::RUBY
s.authors = ["Aleks Grebennik"]
s.email = ["aleks.grebennik@gmail.com"]
Expand All @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = ">= 1.3.6"

s.add_dependency "nokogiri"
s.add_dependency "money", "~> 3.7.1"
s.add_dependency "money", "~> 4.0.1"

s.add_development_dependency "rspec", ">= 2.0.0"
s.add_development_dependency "rr"
Expand Down
2 changes: 1 addition & 1 deletion spec/nbrb_currency_spec.rb
Expand Up @@ -48,7 +48,7 @@
subunit = Money::Currency.wrap("KWD").subunit_to_unit.to_f
@bank.exchange(1000, "KWD", "BYR").cents.should == ((subunit / 1000) * @exchange_rates["currencies"]['KWD'].to_f * 100).round
subunit = Money::Currency.wrap("JPY").subunit_to_unit.to_f
@bank.exchange(100, "JPY", "BYR").cents.should == ((subunit / 100) * @exchange_rates["currencies"]['JPY'].to_f * 100).round
@bank.exchange(100, "JPY", "BYR").cents.should == ((subunit * 100) * @exchange_rates["currencies"]['JPY'].to_f * 100).round
end

it "should return the correct exchange rates using exchange_with" do
Expand Down

0 comments on commit 724cfd5

Please sign in to comment.