thoughtbot--shoulda-matchers/lib/shoulda/matchers/active_model
Peter Marsh 561ac3e2f0 Change `validate_uniqueness_of_matcher` to give non-null columns default values
Previously, if a model had an attribute that mapped to a non-nullable database
column that was not under test the matcher would fail with an SQL error like:

    examples.column may not be NULL #...

With this change the matcher attempts to provide a default value for all
non-nullable, non-primary attributes. This should avoid the above error in
simple cases.
2014-02-20 15:11:44 -07:00
..
numericality_matchers Improve ValidateNumericalityOfMatcher document expression 2014-01-31 09:47:50 -07:00
allow_mass_assignment_of_matcher.rb Update deprecated matcher protocol for RSpec 3. 2013-12-24 22:34:26 +11:00
allow_value_matcher.rb Use __send__ instead of send 2014-02-01 13:09:44 -08:00
disallow_value_matcher.rb Improve ValidateNumericalityOfMatcher document expression 2014-01-31 09:47:50 -07:00
ensure_exclusion_of_matcher.rb
ensure_inclusion_of_matcher.rb Handle ensure_inclusion_of for boolean columns 2014-02-17 15:40:18 -07:00
ensure_length_of_matcher.rb Convert to 1.9 hash syntax 2014-01-17 13:20:44 -07:00
errors.rb Handle ensure_inclusion_of for boolean columns 2014-02-17 15:40:18 -07:00
exception_message_finder.rb
have_secure_password_matcher.rb Update deprecated matcher protocol for RSpec 3. 2013-12-24 22:34:26 +11:00
helpers.rb Use __send__ instead of send 2014-02-01 13:09:44 -08:00
validate_absence_of_matcher.rb Add validates_absence_of matcher 2013-12-23 19:21:22 -07:00
validate_acceptance_of_matcher.rb
validate_confirmation_of_matcher.rb Use __send__ instead of send 2014-02-01 13:09:44 -08:00
validate_numericality_of_matcher.rb Improve ValidateNumericalityOfMatcher document expression 2014-01-31 09:47:50 -07:00
validate_presence_of_matcher.rb
validate_uniqueness_of_matcher.rb Change `validate_uniqueness_of_matcher` to give non-null columns default values 2014-02-20 15:11:44 -07:00
validation_matcher.rb Update deprecated matcher protocol for RSpec 3. 2013-12-24 22:34:26 +11:00
validation_message_finder.rb