thoughtbot / shoulda-matchers

Simple one-liner tests for common Rails functionality
https://matchers.shoulda.io
MIT License
3.51k stars 912 forks source link

fix: Ensure that validation specs work for ActiveModel without ActiveRecord #1580

Closed stonefield closed 10 months ago

stonefield commented 11 months ago

This change addresses issue #1553 It is a simple one liner allowing ActiveModel related matchers to run when ActiveRecord is not used.

There are no specs for this change due the fact that stubbing of the constant namespace is neither recommended, nor possible.