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

Specs should use save!/create!/update! instead of save/create/update

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      This was given as feedback by Oleg on https://github.com/mongodb/mongoid/pull/5000 to ensure specs create documents when they claim to, however it should be applied globally across all specs as much as possible.

      (Of course there are certain cases where we can't/shouldn't use the bang versions.)

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: