Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4426

Setter on hash field failes if the original value is nil.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 6.0.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hi there,

      We just upgraded our project from 5.1.4 to 6.0.3 and got some failed tests. One of those is related to hash field setter.

      In MONGOID-3407 (commit @bf84543) There is a change on hash field
      setter, but it fails if the original value is nil.

      Please see my PR (spec only https://github.com/mongodb/mongoid/pull/4399).
      The spec changed in this PR are failing due to that.

      Is this an issue need to fix?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: