Permalink
Browse files

Reame updated, added examples for System & Describe commands

  • Loading branch information...
1 parent bf2c072 commit 18697cdf381edc8ff75f66b4bd88989e2cac3731 @quangv committed May 3, 2012
Showing with 16 additions and 1 deletion.
  1. +16 −1 Readme.md
View
@@ -34,9 +34,24 @@ Provides high-level/functional/acceptance test organization lingo, using _'Featu
`System` (if it has a message it'll be an _it_, if not it'll be a _describe_ with System label, useful for testing (grey box) system resources, database, not directly observable by Customer etc.)
+```coffeescript
+Given ->
+ System 'Logged Out', ->
+
+Then ->
+ System ->
+ it 'should log in', ->
+```
+
## Pretty Commands for Specs/Unit Tests
-`Describe`, `Spec` (maps to _describe_ used for things like filenames)
+`Describe` & `Spec` (are the same, maps to _describe_ used for things like filenames)
+
+```coffeescript
+Describe 'lib/file.coffee' # filename
+ describe '+copy()', ->
+ it 'should copy files...', ->
+```
# Example

0 comments on commit 18697cd

Please sign in to comment.