thoughtbot--shoulda-matchers/spec/unit/shoulda/matchers
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
..
action_controller Fix formatting issues with #permit failure messages 2015-09-29 18:30:21 -06:00
active_model Fix inclusion matcher w/ date & datetime attrs 2015-10-04 16:55:48 -06:00
active_record Fail when no scopes on uniq matcher but scopes on validation 2015-05-22 14:37:19 -06:00
doublespeak Improve architecture for permit matcher 2015-09-29 18:42:08 -06:00
independent Add with_prefix to delegate_method 2014-12-15 22:38:27 -07:00
routing Add a new Routing module 2015-09-25 17:45:33 -06:00
doublespeak_spec.rb Make Doublespeak specs runnable without Rails 2015-02-28 23:41:28 -07:00