thoughtbot--shoulda-matchers/spec/unit/shoulda/matchers/active_model
Elliot Winkler 8fa97b4ff3 Fix inclusion matcher w/ date & datetime attrs
Why:

* The inclusion matcher (when used with the `in_array` qualifier) makes
  the assertion that when the attribute is set to a value that is
  outside the given array, the record in question is invalid. The issue
  is that when used with a date or datetime attribute, the arbitrary
  value the matcher chose was a string. This was getting typecast and so
  the matcher was throwing a CouldNotSetAttributeError.

To satisfy the above:

* If the column is a date, use a Date for the arbitrary value
* If the column is a datetime, use a DateTime for the arbitrary value
* If the column is a time, use a Time for the arbitrary value
2015-10-04 16:55:48 -06:00
..
numericality_matchers Rewrite the tests for ComparisonMatcher 2015-09-25 17:45:33 -06:00
allow_mass_assignment_of_matcher_spec.rb Fix test suite to properly tag example groups 2014-12-25 00:44:53 -05:00
allow_value_matcher_spec.rb Tighten CouldNotSetAttributeError restriction 2015-09-27 14:56:59 -06:00
disallow_value_matcher_spec.rb Stop handling AR RangeError when assign a attribute 2015-09-23 15:46:32 -06:00
have_secure_password_matcher_spec.rb Fix test suite to properly tag example groups 2014-12-25 00:44:53 -05:00
helpers_spec.rb Remove warning when running tests 2014-12-15 23:05:52 -07:00
validate_absence_of_matcher_spec.rb Fix test suite to properly tag example groups 2014-12-25 00:44:53 -05:00
validate_acceptance_of_matcher_spec.rb Tighten CouldNotSetAttributeError restriction 2015-09-27 14:56:59 -06:00
validate_confirmation_of_matcher_spec.rb Fix test suite to properly tag example groups 2014-12-25 00:44:53 -05:00
validate_exclusion_of_matcher_spec.rb Remove deprecated matchers 2015-02-09 10:52:51 -07:00
validate_inclusion_of_matcher_spec.rb Fix inclusion matcher w/ date & datetime attrs 2015-10-04 16:55:48 -06:00
validate_length_of_matcher_spec.rb Remove deprecated matchers 2015-02-09 10:52:51 -07:00
validate_numericality_of_matcher_spec.rb Tighten CouldNotSetAttributeError restriction 2015-09-27 14:56:59 -06:00
validate_presence_of_matcher_spec.rb Fix presence matcher to work with serialized attrs 2015-09-29 22:39:16 -06:00