Skip to content

Commit

Permalink
Minifix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Ronvel committed Aug 3, 2014
1 parent 3641a44 commit a27bd65
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ README.md: documentation.md bdd-spec.md

# Mocha Markdown BDD spec
bdd-spec.md: log/npm-dev-install.log lib/spellcast.js test/spellcast-test.js
${MOCHA} test/spellcast-test.js -R markdown > ../bdd-spec.md
${MOCHA} test/spellcast-test.js -R markdown > bdd-spec.md

# Upgrade version in package.json
log/upgrade-package.log: lib/spellcast.js test/spellcast-test.js documentation.md
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This Scroll is still a work in progress (specs, etc...)
Full BDD spec generated by Mocha:


undefined
{ blah: 'blih', alert: 'bob' }
{ type: 'spell',
name: 'fireball',
args: {},
Expand All @@ -35,6 +35,7 @@ Grrrrjjjjj grrrrrjjjjj grrrrjjjj
flash
bob blihblih
bob blihblih
This spell is not ready yet.
# TOC
- [Sample file](#sample-file)
<a name=""></a>
Expand All @@ -45,7 +46,7 @@ bob blihblih

```js
var book = new spellcast.Book( fs.readFileSync( 'spellcast-sample1.txt' ).toString() ) ;
console.log( book.ingredients ) ;
console.log( book.formula ) ;
console.log( book.spells.fireball ) ;
console.log( book.spells.fireball.casting[ 0 ] ) ;
```
Expand All @@ -61,7 +62,10 @@ book.cast( 'fireball' , done ) ;

```js
var book = new spellcast.Book( fs.readFileSync( 'spellcast-sample1.txt' ).toString() ) ;
book.cast( 'nova' , done ) ;
book.cast( 'nova' , function( error ) {
expect( error ).to.be.ok() ;
done() ;
} ) ;
```

4.
Expand Down
10 changes: 7 additions & 3 deletions bdd-spec.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
undefined
{ blah: 'blih', alert: 'bob' }
{ type: 'spell',
name: 'fireball',
args: {},
Expand All @@ -17,6 +17,7 @@ Grrrrjjjjj grrrrrjjjjj grrrrjjjj
flash
bob blihblih
bob blihblih
This spell is not ready yet.
# TOC
- [Sample file](#sample-file)
<a name=""></a>
Expand All @@ -27,7 +28,7 @@ bob blihblih

```js
var book = new spellcast.Book( fs.readFileSync( 'spellcast-sample1.txt' ).toString() ) ;
console.log( book.ingredients ) ;
console.log( book.formula ) ;
console.log( book.spells.fireball ) ;
console.log( book.spells.fireball.casting[ 0 ] ) ;
```
Expand All @@ -43,7 +44,10 @@ book.cast( 'fireball' , done ) ;

```js
var book = new spellcast.Book( fs.readFileSync( 'spellcast-sample1.txt' ).toString() ) ;
book.cast( 'nova' , done ) ;
book.cast( 'nova' , function( error ) {
expect( error ).to.be.ok() ;
done() ;
} ) ;
```

4.
Expand Down
2 changes: 1 addition & 1 deletion spellbook
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ formula
lib/spellcast.js
test/spellcast-test.js
sh
${MOCHA} test/spellcast-test.js -R markdown > ../bdd-spec.md
${MOCHA} test/spellcast-test.js -R markdown > bdd-spec.md



Expand Down

0 comments on commit a27bd65

Please sign in to comment.