thoughtbot--shoulda-matchers/spec/unit/shoulda/matchers/active_record
Elliot Winkler 6ac7b8158c Fail when no scopes on uniq matcher but scopes on validation
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
2015-05-22 14:37:19 -06:00
..
association_matchers Fix calls to old method name. 2015-04-03 23:33:19 -06:00
accept_nested_attributes_for_matcher_spec.rb
association_matcher_spec.rb Add support for hbtm :join_table option 2015-04-04 00:19:28 -06:00
define_enum_for_matcher_spec.rb Fix enum attribute name verification 2015-02-12 18:04:51 -07:00
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 Fail when no scopes on uniq matcher but scopes on validation 2015-05-22 14:37:19 -06:00