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 |
||
---|---|---|
.. | ||
acceptance | ||
support | ||
unit/shoulda/matchers | ||
warnings_spy | ||
acceptance_spec_helper.rb | ||
doublespeak_spec_helper.rb | ||
report_warnings.rb | ||
unit_spec_helper.rb | ||
warnings_spy.rb |