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

Test return value type of #attributes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 7.4.1, 7.3.5
    • Affects Version/s: None
    • Component/s: Tests

      In MONGOID-5344 the return value of #attributes changed from BSON::Document to Hash for model instances that were returned from .find methods. This is a breaking change but was not caught by the test suite.

      We should add test coverage for the type of return value of #attributes for

      models just created (Model.new)
      models found from the database (Model.find)

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: