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
This test snippet fails...
amount = 555.55.to_money assert_equal(Money.new(55555), amount)
Probably the error is in to ruby internal to_int method. "555.55".to_money works fine.
Here's the error message I get: <#<Money:0x7f119cad3590 @bank= #<Money::VariableExchangeBank:0x7f119e581a68 @mutex=#Mutex:0x7f119e5819f0, @rates={}, @rounding_method=nil>, @cents=55555, @Currency= #<Money::Currency id: usd priority: 1, iso_code: USD, name: United States Dollar, symbol: $, subunit: Cent, subunit_to_unit: 100, separator: ., delimiter: ,>>> expected but was <#<Money:0x7f119cad35b8 @bank= #<Money::VariableExchangeBank:0x7f119e581a68 @mutex=#Mutex:0x7f119e5819f0, @rates={}, @rounding_method=nil>, @cents=55554, @Currency= #<Money::Currency id: usd priority: 1, iso_code: USD, name: United States Dollar, symbol: $, subunit: Cent, subunit_to_unit: 100, separator: ., delimiter: ,>>>.
The text was updated successfully, but these errors were encountered:
fixed in commit dfae9cf
Sorry, something went wrong.
No branches or pull requests
This test snippet fails...
Probably the error is in to ruby internal to_int method. "555.55".to_money works fine.
Here's the error message I get:
<#<Money:0x7f119cad3590
@bank=
#<Money::VariableExchangeBank:0x7f119e581a68
@mutex=#Mutex:0x7f119e5819f0,
@rates={},
@rounding_method=nil>,
@cents=55555,
@Currency=
#<Money::Currency id: usd priority: 1, iso_code: USD, name: United States Dollar, symbol: $, subunit: Cent, subunit_to_unit: 100, separator: ., delimiter: ,>>> expected but was
<#<Money:0x7f119cad35b8
@bank=
#<Money::VariableExchangeBank:0x7f119e581a68
@mutex=#Mutex:0x7f119e5819f0,
@rates={},
@rounding_method=nil>,
@cents=55554,
@Currency=
#<Money::Currency id: usd priority: 1, iso_code: USD, name: United States Dollar, symbol: $, subunit: Cent, subunit_to_unit: 100, separator: ., delimiter: ,>>>.
The text was updated successfully, but these errors were encountered: