Permalink
Browse files

path.exists was moved to fs.exists

  • Loading branch information...
1 parent 68cd912 commit fb174db80879e16defea7ad881b94e0c5b8eb2c5 @jfhbrook jfhbrook committed with jrsacks Jul 7, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/jezebel.js
  2. +1 −1 spec/jezebel_spec.js
View
@@ -42,7 +42,7 @@ function runTests(tests) {
tests = tests || ['spec'];
var childPath;
var windowsPath = rootDir + '/node_modules/.bin/jessie.cmd';
- path.exists(windowsPath, function(pathExists) {
+ fs.exists(windowsPath, function(pathExists) {
if (pathExists) {
childPath = windowsPath;
} else {
@@ -65,7 +65,7 @@ function runTests(tests) {
function loadConfig(callback) {
var configFile = process.cwd() + '/.jezebel';
- path.exists(configFile, function(exists) {
+ fs.exists(configFile, function(exists) {
if (exists) {
config = require(configFile);
extend(session.context, config);
View
@@ -12,7 +12,7 @@ describe('jezebel', function() {
spyOn(childProcess, 'spawn');
spyOn(process.stdin, 'emit');
spyOn(process, 'nextTick');
- spyOn(require('path'), 'exists').andCallFake(function(file, callback) {
+ spyOn(require('fs'), 'exists').andCallFake(function(file, callback) {
if(file == process.cwd() + '/.jezebel')
callback(true);
else

0 comments on commit fb174db

Please sign in to comment.