We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something like this:
describe "Money core extensions" do specify "#to_money accept currency" do %w{EUR USD}.each do |curr| money = 1234.to_money(curr) money.cents.should == 1234_00 money.currency.should == Money::Currency.new(curr) money.should == Money.new(1234_00, curr) money = "10.10".to_money(curr) money.cents.should = 10_10 money.currency.should == Money::Currency.new(curr) money.should == Money.new(10_10, curr) '10 JPY'.to_money(curr).should == Money.new(10_00, curr) # or raise? end end end
The text was updated successfully, but these errors were encountered:
commit bad6f51 adds support for optional currency argument in Numeric#to_money
Sorry, something went wrong.
commit 04fcbd2 adds support for optional currency argument in String#to_money
Merge pull request RubyMoney#11 from Holek/patch-1
bb60a97
include EUR in CURRENCIES table
No branches or pull requests
Something like this:
The text was updated successfully, but these errors were encountered: