This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comparison operators should handle case where expectation is nil
* While this should be rare, this does occur in the dm-is-list specs when testing against the yaml/in_memory adapters. * Possible optimization in the future might be to add #valid? methods to each gt/gte/lt/lte Comparison operator that returns false if the expected value is nil. This will cause the query to never execute, saving the comparison operator from being called when in an invalid state. The object may still need to handle invalid states when called stand-alone through.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 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