Created
December 24, 2011 16:39
-
-
Save pjlsergeant/1517743 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
| "Type::warehouse": { | |
| "constraint": create_enum('WH1', 'WH2'), | |
| "cucumber": { | |
| "type": "Given", | |
| "match" : qr/the warehouse is "(WH\d)"/, | |
| "describe": "the warehouse is \"{0}\"", | |
| } | |
| }, | |
| "Type::product_measurable": { | |
| "constraint": "Type::Bool", | |
| "cucumber": { | |
| "type": "When", | |
| "match": [ | |
| qr/the product (is (not )?) measurable/, | |
| function (m) { return m == 'is ' } | |
| ], | |
| "describe": function (m) { | |
| return "the product is " . ( m ? '' : 'not ' ) . "measurable"; | |
| }, | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment