Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added 'I' command documentation to Readme.

  • Loading branch information...
commit 84927c408579dfa6bebe4aa17e73e3622d692b5f 1 parent e20af5b
@quangv authored
Showing with 14 additions and 1 deletion.
  1. +14 −1 Readme.md
View
15 Readme.md
@@ -16,7 +16,7 @@ Provides high-level/functional/acceptance test organization lingo, using _'Featu
`Given`, `When`, `Then` (maps to _it_, but if first message argument is ommited, it'll be a _describe_)
-`And`, `But` (maps to _it_ but if first message argument is ommited, it'll be a _describe_)
+`And`, `But`, `I` (maps to _it_ but if first message argument is ommited, it'll be a _describe_)
### GWTab
GWTab commands can map to a describe if the message argument is ommited.
@@ -53,6 +53,19 @@ Describe 'lib/file.coffee' # filename
it 'should copy files...', ->
```
+## Custom
+
+Mocha-Cakes 0.7 added the `I` command, to do things like:
+
+```
+Given ->
+ I 'have a test', ->
+ And 'I have another', ->
+Then ->
+ I 'should be good', ->
+ But 'make sure I am also', ->
+```
+
# Example
_Coffee-Script: test.coffee_
Please sign in to comment.
Something went wrong with that request. Please try again.