thoughtbot--shoulda-matchers/lib/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 Add support for hbtm :join_table option 2015-04-04 00:19:28 -06:00
uniqueness Documentation updates 2014-12-25 01:13:30 -05:00
accept_nested_attributes_for_matcher.rb Updated accept_nested_attributes_for_matcher docs [ci skip] 2014-08-27 15:16:15 -03:00
association_matcher.rb Add support for hbtm :join_table option 2015-04-04 00:19:28 -06:00
association_matchers.rb Extract examples in README to inline documentation 2014-06-20 16:41:27 -06:00
define_enum_for_matcher.rb Fix enum attribute name verification 2015-02-12 18:04:51 -07:00
have_db_column_matcher.rb Documentation updates 2014-12-25 01:13:30 -05:00
have_db_index_matcher.rb Extract examples in README to inline documentation 2014-06-20 16:41:27 -06:00
have_readonly_attribute_matcher.rb Extract examples in README to inline documentation 2014-06-20 16:41:27 -06:00
serialize_matcher.rb Fix AR matcher tests for Rails 4.2 2014-12-25 00:45:06 -05:00
uniqueness.rb Move uniqueness validation to ActiveRecord module 2014-12-13 17:53:16 -05:00
validate_uniqueness_of_matcher.rb Fail when no scopes on uniq matcher but scopes on validation 2015-05-22 14:37:19 -06:00