Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Added .npmignore, no longer using spec/tmp
  • Loading branch information
assaf committed Dec 13, 2011
1 parent efa2497 commit dbe65ef
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -2,4 +2,3 @@ docs
html
man7
node_modules
spec/tmp/*
4 changes: 4 additions & 0 deletions .npmignore
@@ -0,0 +1,4 @@
.gitignore
docs
html
man7
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"coffee-script": "~1.1.3",
"contextify": "~0.0.6",
"contextify": "~0.0.7",
"html5": "~0.3.5",
"jsdom": "~0.2.10",
"mime": "~1.2.4",
Expand Down
11 changes: 5 additions & 6 deletions spec/helpers.coffee
@@ -1,16 +1,15 @@
# Formidable reads this
process.env.TMP = "#{__dirname}/tmp"

File = require("fs")
Express = require("express")
Zombie = require("../lib/zombie.js")
Browser = Zombie.Browser
File = require("fs")
Path = require("path")
Zombie = require("../lib/zombie.js")


# Always run in verbose mode on Travis.
Zombie.debug = true if process.env.TRAVIS
Zombie.silent = !Zombie.debug

Browser = Zombie.Browser


# An express server we use to test the browser.
brains = Express.createServer()
Expand Down
4 changes: 1 addition & 3 deletions spec/script_spec.coffee
Expand Up @@ -106,8 +106,7 @@ vows.describe("Scripts").addBatch(
"should be the same as this, top and parent": (browser)->
assert.equal browser.text("title"), "true,true,true,true,true,true"

"global and function": "pending"
###
"global and function":
topic: ->
brains.get "/script/global_and_fn", (req, res)->
res.send """
Expand All @@ -128,7 +127,6 @@ vows.describe("Scripts").addBatch(
assert.isEmpty browser.errors
"should set global variable": (browser)->
assert.equal browser.text("title"), "foo"
###


"failing":
Expand Down
Empty file removed spec/tmp/.empty
Empty file.

2 comments on commit dbe65ef

@glenjamin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sorting this! I'm assuming you saw my tweet :)

@assaf
Copy link
Owner Author

@assaf assaf commented on dbe65ef Dec 13, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, from the tweet :)

Please sign in to comment.