Skip to content
New issue

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

[FIX+Spec] Fractional not being BigDecimal upon deserialization #232

Merged
merged 3 commits into from Dec 5, 2012

Commits on Dec 1, 2012

  1. If the Money object is created from a serialized YAML string, @fracti…

    …onal can end up being set to a Float. We need to ensure it is BigDecimal before calling #round with two paramers. Float class only provides #round with 0 or 1 parameter. Spec included.
    Robert Starsi committed Dec 1, 2012
    Configuration menu
    Copy the full SHA
    61e5c72 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2012

  1. Refactored spec with "loading a serialized Money via YAML" context. F…

    …it comment to 80 col width.
    Robert Starsi committed Dec 2, 2012
    Configuration menu
    Copy the full SHA
    912c023 View commit details
    Browse the repository at this point in the history
  2. Ensure BigDecimal.new always receives a string - compatibility fix fo…

    …r ruby-1.9.2-p320
    Robert Starsi committed Dec 2, 2012
    Configuration menu
    Copy the full SHA
    1e5a538 View commit details
    Browse the repository at this point in the history