Permalink
Browse files

[doc minor] Updated templates to output comment stubs. Updated README.md

  • Loading branch information...
1 parent 1cef07a commit 008194795c8221038afe59508f96dda8e2c354f4 @indexzero indexzero committed Aug 29, 2010
Showing with 22 additions and 26 deletions.
  1. +20 −24 README.md
  2. +1 −1 lib/kyuri/templates/vows/step.tmpl
  3. +1 −1 lib/kyuri/templates/vows/topic.tmpl
View
@@ -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>
@@ -1,3 +1,3 @@
"{{ title }}": function () {
-
+ /* Setup your test assertions here */
},
@@ -1,6 +1,6 @@
"{{ title }}": {
topic: function () {
-
+ /* Setup your test conditions here */
},
{{ next }}
}

0 comments on commit 0081947

Please sign in to comment.