1
0
Fork 0
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:
Ivan Valdes (@ivanvc) 2013-05-17 13:10:19 -05:00 committed by Elliot Winkler
parent 2b9130b462
commit 2065a654e6
3 changed files with 41 additions and 5 deletions

View file

@ -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