mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
Fixes validate_uniqueness_of when scope is taken
Re-implement how to get previous value in order to test validate_uniquenes_of matcher, after the scope changes. This way, new value should not be taken by a previous record. Fixes #207.
This commit is contained in:
parent
2b9130b462
commit
2065a654e6
3 changed files with 41 additions and 5 deletions
3
NEWS.md
3
NEWS.md
|
@ -2,6 +2,9 @@
|
|||
|
||||
* Fix `have_and_belong_to_many` matcher issue for Rails 4.
|
||||
|
||||
* Fix `validate_uniqueness_of.scoped_to` issue when the scoped field is already
|
||||
taken (#207).
|
||||
|
||||
# v 2.1.0
|
||||
|
||||
* Add missing `failure_message_for_should_not` implementations to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue