Skip to content
Browse files

[test v0.6] Remove `require.paths` from tests

  • Loading branch information...
1 parent 26b0f41 commit a74bf38608a491f928e34cc84a387690b0053eb5 @mmalecki mmalecki committed
View
4 test/authentication-test.js
@@ -6,13 +6,11 @@
*
*/
-require.paths.unshift(require('path').join(__dirname, '..', 'lib'));
-
var path = require('path'),
vows = require('vows'),
assert = require('assert'),
helpers = require('./helpers'),
- cloudfiles = require('cloudfiles');
+ cloudfiles = require('../lib/cloudfiles');
var client = helpers.createClient();
View
6 test/container-destroy-test.js
@@ -6,12 +6,10 @@
*
*/
-require.paths.unshift(require('path').join(__dirname, '..', 'lib'));
-
var path = require('path'),
vows = require('vows'),
assert = require('assert'),
- cloudfiles = require('cloudfiles'),
+ cloudfiles = require('../lib/cloudfiles'),
helpers = require('./helpers');
var client = helpers.createClient();
@@ -37,4 +35,4 @@ vows.describe('node-cloudfiles/containers').addBatch({
}
}
}
-}).export(module);
+}).export(module);
View
4 test/container-test.js
@@ -6,13 +6,11 @@
*
*/
-require.paths.unshift(require('path').join(__dirname, '..', 'lib'));
-
var path = require('path'),
fs = require('fs'),
vows = require('vows'),
assert = require('assert'),
- cloudfiles = require('cloudfiles'),
+ cloudfiles = require('../lib/cloudfiles'),
helpers = require('./helpers');
var testData = {},
View
4 test/storage-object-large-test.js
@@ -6,13 +6,11 @@
*
*/
-require.paths.unshift(require('path').join(__dirname, '..', 'lib'));
-
var path = require('path'),
vows = require('vows'),
fs = require('fs'),
assert = require('assert'),
- cloudfiles = require('cloudfiles'),
+ cloudfiles = require('../lib/cloudfiles'),
helpers = require('./helpers');
var testData = {},
View
6 test/storage-object-metadata-test.js
@@ -6,13 +6,11 @@
*
*/
-require.paths.unshift(require('path').join(__dirname, '..', 'lib'));
-
var path = require('path'),
vows = require('vows'),
fs = require('fs'),
assert = require('assert'),
- cloudfiles = require('cloudfiles'),
+ cloudfiles = require('../lib/cloudfiles'),
helpers = require('./helpers');
var testData = {},
@@ -86,4 +84,4 @@ vows.describe('node-cloudfiles/storage-object').addBatch({
}
}
}
-}).export(module);
+}).export(module);
View
4 test/storage-object-test.js
@@ -6,13 +6,11 @@
*
*/
-require.paths.unshift(require('path').join(__dirname, '..', 'lib'));
-
var path = require('path'),
vows = require('vows'),
fs = require('fs'),
assert = require('assert'),
- cloudfiles = require('cloudfiles'),
+ cloudfiles = require('../lib/cloudfiles'),
helpers = require('./helpers');
var testData = {}, client = helpers.createClient(),

0 comments on commit a74bf38

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