shoulda-matchers v4.2.0 Release Notes

Release Date: 2020-01-09 // 19 days ago
  • 🔋 Features

    • ➕ Add support for optional: false in belongs_to associations. (#1237)
    • ➕ Add support for associations with inverse_of: false and non-standard foreign key (#1106)

    🐛 Bug fixes

    • 🛠 Fix typos in documentation of allow_values (#1241)
    • 🛠 Fix appraisal command in CONTRIBUTING.md file (#1253)

    👌 Improvements

    • ✂ Remove minitest-reporters dependency ([#1251])
    • ⚡️ Development dependency updates

Previous changes from v4.1.1

  • 🐛 Bug fixes

    • Patch some backward-incompatible changes to validate_presence_of that were
      made in the last version. As of 4.1.0 the presence matcher now checks to
      ensure that empty string will cause the record to be invalid (in addition to
      nil, which it was already checking against). However, this check was being
      performed even if the attribute or column the presence matcher is being run
      🚀 against didn't support being set to an empty string. This releases fixes this.
      (#1222, #1224, #1231)