Last active
August 29, 2015 14:01
-
-
Save alxjrvs/730d660979f8a5e25e4c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
considered :canonical if: :remote_uuid, present: true | |
considered :canonical if: do | |
:remote_uuid, present: true | |
:investors, { investors > 40} | |
:boolean_method | |
end | |
considered :canonical if: do |obj| | |
obj.remote_uuid, present: true | |
obj.investors, { investors > 40} | |
obj.boolean_method | |
end | |
Methods: | |
test_class.canonical? | |
test_class.warnings? #analagous to #errors?, warnings are keyed to their respective state) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's a lot of
considered :canonical if:
. Seems verbose.