6ac7b8158c
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 | ||
accept_nested_attributes_for_matcher_spec.rb | ||
association_matcher_spec.rb | ||
define_enum_for_matcher_spec.rb | ||
have_db_column_matcher_spec.rb | ||
have_db_index_matcher_spec.rb | ||
have_readonly_attributes_matcher_spec.rb | ||
serialize_matcher_spec.rb | ||
validate_uniqueness_of_matcher_spec.rb |