Permalink
Browse files

Setting process.env.NODE_ENV rather than ENV. v0.0.3

  • Loading branch information...
1 parent 06ec1b8 commit 4d0bf2db29f452c7b326cd63c32b7c9e42e0ff24 @chrisjpowers committed May 10, 2012
Showing with 4 additions and 5 deletions.
  1. +2 −2 lib/commands.coffee
  2. +2 −3 package.json
View
4 lib/commands.coffee
@@ -90,7 +90,7 @@ exports.test = (feature = null) ->
_ = require "underscore"
port = process.env.PORT || 8228
- process.env.ENV = 'test'
+ process.env.NODE_ENV = 'test'
testServer = null
if feature
@@ -118,7 +118,7 @@ exports.test = (feature = null) ->
.concat(glob.sync("#{dir}/test/*test.coffee"))
.concat(glob.sync("#{dir}/test/*test.js"))
- requires = ["coffee-script", "should"]
+ requires = ["coffee-script"]
requireStr = _.map(requires, (r) -> "-r #{r}").join " "
cmd = "mocha #{requireStr} -u bdd --compilers coffee:coffee-script --ignore-leaks".split(" ").concat(files)
View
5 package.json
@@ -2,7 +2,7 @@
"author": "Chris Powers <chrisjpowers@gmail.com> (http://chrisjpowers.com)",
"name": "feat",
"description": "A framework for organizing and loading code by feature with built-in rollout support.",
- "version": "0.0.2",
+ "version": "0.0.3",
"main": "index.js",
"bin": {
"feat": "bin/feat"
@@ -12,8 +12,7 @@
"express": "> 2.0.0",
"underscore": "*",
"glob": "*",
- "mocha": "*",
- "should": "*"
+ "mocha": "*"
},
"devDependencies": {},
"optionalDependencies": {},

0 comments on commit 4d0bf2d

Please sign in to comment.