![]() Change behavior of `validate_uniqueness_of` when the matcher is not qualified with any scopes, but your validation is. Previously the following test would pass when it now fails: class Post < ActiveRecord::Base validate :slug, uniqueness: { scope: :user_id } end describe Post do it { should validate_uniqueness_of(:slug) } end |
||
---|---|---|
.. | ||
association_matchers | ||
uniqueness | ||
accept_nested_attributes_for_matcher.rb | ||
association_matcher.rb | ||
association_matchers.rb | ||
define_enum_for_matcher.rb | ||
have_db_column_matcher.rb | ||
have_db_index_matcher.rb | ||
have_readonly_attribute_matcher.rb | ||
serialize_matcher.rb | ||
uniqueness.rb | ||
validate_uniqueness_of_matcher.rb |