-
-
Notifications
You must be signed in to change notification settings - Fork 910
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters