From 256d3b5ac9a9031af7b7096fbcbb72272784000b Mon Sep 17 00:00:00 2001 From: Gustavo Cunha Date: Sat, 12 Sep 2020 18:43:05 +0200 Subject: [PATCH] Add comment about no support of validate_uniqueness_of(:item).scoped_to(array) Closes #814 --- .../active_record/validate_uniqueness_of_matcher.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb b/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb index 64171b2a9..cc02f532f 100644 --- a/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb +++ b/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb @@ -157,6 +157,12 @@ module ActiveRecord # should validate_uniqueness_of(:slug).scoped_to(:journal_id) # end # + # NOTE: Support for testing uniqueness validation scoped to an array of + # associations is not available. + # + # For more information, please refer to + # https://github.com/thoughtbot/shoulda-matchers/issues/814 + # # ##### case_insensitive # # Use `case_insensitive` to test usage of the `:case_sensitive` option