Test return value type of #attributes

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Oleg Pudeyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: