Permalink
Browse files

[test] updated jitsu.commands.env.load tests

  • Loading branch information...
1 parent ff4cee5 commit 5aecfdc9106b5e89dbfd4d23db457afc4fab6651 @blakmatrix blakmatrix committed Dec 11, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 test/commands/env-test.js
View
@@ -435,10 +435,16 @@ vows.describe('jitsu/commands/env').addBatch({
}
)
}).addBatch({
- 'env load enviroment.json': shouldNodejitsuOk('The current app should load enviroment variables from the specified file',
+ 'env load env_vars.json': shouldNodejitsuOk('The current app should load enviroment variables from the specified file',
function setup() {
jitsu.prompt.override.confirm = 'yes';
nock('http://api.mockjitsu.com')
+ .get('/apps/tester/env_vars.json')
+ .reply(400, {
+ result: {
+ error: 'not_found'
+ }
+ }, { 'x-powered-by': 'Nodejitsu' })
.get('/apps/tester/jitsu')
.reply(200, {
app: {
@@ -455,7 +461,7 @@ vows.describe('jitsu/commands/env').addBatch({
}
)
}).addBatch({
- 'env load barbaz enviroment.json': shouldNodejitsuOk('The specified app should load enviroment variables from the specified file',
+ 'env load barbaz env_vars.json': shouldNodejitsuOk('The specified app should load enviroment variables from the specified file',
function setup() {
jitsu.prompt.override.confirm = 'yes';
nock('http://api.mockjitsu.com')

0 comments on commit 5aecfdc

Please sign in to comment.