Skip to content

Commit

Permalink
Merge pull request #7 from misfo/uncurl
Browse files Browse the repository at this point in the history
these braces were a bit too curly
  • Loading branch information
Derek Croft committed Aug 12, 2011
2 parents c33b86a + a24fcd6 commit cf71fb4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions vows/house-test.coffee
Expand Up @@ -5,31 +5,29 @@ House = require '../lib/house.js'
Table = require '../lib/table.js'

vows.describe('The House').addBatch(
"When first created": {
"When first created":
topic: -> new House()
"has one table": (house) ->
assert.equal 1, house.tables.length
"and a table is created": {
"and a table is created":
topic: (house) ->
house.tables.push new Table()
house
"has two tables": (house) ->
assert.equal 2, house.tables.length
}
}
"When it has multiple tables": {

"When it has multiple tables":
topic: ->
house = new House()
for x in [1..3]
house.tables.push new Table()
house
"and a table is removed": {
"and a table is removed":
topic: (house) ->
house.tables.splice house.tables.length - 1, 1
house
"it has one fewer table": (house) ->
assert.equal 3, house.tables.length
}
}

).export(module)

0 comments on commit cf71fb4

Please sign in to comment.