Skip to content

Commit

Permalink
[doc minor] Updated templates to output comment stubs. Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Aug 29, 2010
1 parent 1cef07a commit 0081947
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 26 deletions.
44 changes: 20 additions & 24 deletions README.md
Expand Up @@ -25,30 +25,26 @@ Should output:

<pre>
vows.describe('Addition').addBatch({
"Given": {
topic: function () {/* Do something async */},
'I have entered 50 into the calculator': function (topic) {
/* Test the result here */
},
"And": {
topic: function () {/* Do something async */},
'I have entered 50 into the calculator': function (topic) {
/* Test the result here */
},
"When": {
topic: function () {/* Do something async */},
'I press add': function (topic) {
/* Test the result here */
},
"Then": {
topic: function () {/* Do something async */},
'the result should be 120 on the screen': function (topic) {
/* Test the result here */
},
}
}
}
}
"Add two numbers": {
"GIVEN I have entered 50 into the calculator": {
topic: function () {
/* Setup your test conditions here */
},
"AND I have entered 70 into the calculator": {
topic: function () {
/* Setup your test conditions here */
},
"WHEN I press add": {
topic: function () {
/* Setup your test conditions here */
},
"THEN the result should be 120 on the screen": function () {
/* Setup your test assertions here */
},
}
}
}
}
}).export(module);
</pre>

Expand Down
2 changes: 1 addition & 1 deletion lib/kyuri/templates/vows/step.tmpl
@@ -1,3 +1,3 @@
"{{ title }}": function () {

/* Setup your test assertions here */
},
2 changes: 1 addition & 1 deletion lib/kyuri/templates/vows/topic.tmpl
@@ -1,6 +1,6 @@
"{{ title }}": {
topic: function () {

/* Setup your test conditions here */
},
{{ next }}
}

0 comments on commit 0081947

Please sign in to comment.