Skip to content
Browse files

Adding batches

  • Loading branch information...
1 parent 754d06d commit a47176530f69123092157bcf210fa33e5d2cccda @assaf assaf committed Dec 18, 2011
Showing with 10 additions and 2 deletions.
  1. +10 −2 spec/browser_spec.coffee
View
12 spec/browser_spec.coffee
@@ -2,7 +2,7 @@
JSDOM = require("jsdom")
-Vows.describe("Browser").addBatch(
+Vows.describe("Browser").addBatch
"browsing":
topic: ->
@@ -212,6 +212,8 @@ Vows.describe("Browser").addBatch(
Browser.site = null
+.addBatch
+
"content selection":
topic: ->
brains.get "/browser/walking", (req, res)->
@@ -309,6 +311,8 @@ Vows.describe("Browser").addBatch(
assert.equal $('body').find('#main a').text(), 'Kill'
+.addBatch
+
"click link":
topic: ->
brains.get "/browser/head", (req, res)->
@@ -384,6 +388,8 @@ Vows.describe("Browser").addBatch(
assert.equal browser.window.navigator.userAgent, "imposter"
+.addBatch
+
"authentication":
"basic":
topic: ->
@@ -514,6 +520,8 @@ Vows.describe("Browser").addBatch(
assert.equal "http://localhost:3003/browser/living", forked.location.href
+.addBatch
+
"iframes":
topic: ->
brains.get "/iframe", (req, res)->
@@ -551,4 +559,4 @@ Vows.describe("Browser").addBatch(
assert.equal "http://localhost:3003/iframe", browser.window.location
-).export(module)
+.export(module)

0 comments on commit a471765

Please sign in to comment.
Something went wrong with that request. Please try again.