Permalink
Browse files

[dist] Remove references to `require.paths.unshift`

  • Loading branch information...
indexzero committed Sep 3, 2011
1 parent 2fcb86a commit 60ebc76c692ea2e4fecfb7180a71c5ba5ded6d3b
Showing with 19 additions and 29 deletions.
  1. +10 −13 lib/cradle.js
  2. +3 −5 test/cache-test.js
  3. +3 −5 test/cradle-test.js
  4. +3 −6 test/response-test.js
View
@@ -1,23 +1,20 @@
var path = require('path');
require.paths.unshift(path.join(__dirname, 'cradle'));
var sys = require("sys"),
http = require("http"),
var path = require('path'),
sys = require("sys"),
http = require("http"),
https = require("https"),
events = require('events'),
fs = require("fs"),
url = require('url'),
buffer = require('buffer');
events = require('events'),
fs = require("fs"),
url = require('url'),
buffer = require('buffer');
var querystring = require('querystring');
var Args = require('vargs').Constructor;
var cradle = exports;
cradle.extend = require('response').extend;
cradle.Response = require('response').Response;
cradle.Cache = require('cache').Cache;
cradle.extend = require('./cradle/response').extend;
cradle.Response = require('./cradle/response').Response;
cradle.Cache = require('./cradle/cache').Cache;
cradle.host = '127.0.0.1';
cradle.port = 5984;
View
@@ -1,12 +1,10 @@
var path = require('path'),
sys = require('sys'),
assert = require('assert'),
events = require('events');
events = require('events'),
vows = require('vows');
require.paths.unshift(path.join(__dirname, '..', 'lib'));
var vows = require('vows');
var cradle = require('cradle');
var cradle = require('../lib/cradle');
vows.describe('cradle/Cache').addBatch({
'A cradle.Connection instance with a *cacheSize* specified': {
View
@@ -3,12 +3,11 @@ var path = require('path'),
assert = require('assert'),
events = require('events'),
http = require('http'),
fs = require('fs');
fs = require('fs'),
vows = require('vows');
require('./scripts/prepare-db');
require.paths.unshift(path.join(__dirname, '..', 'lib'));
function status(code) {
return function (e, res) {
assert.ok(res || e);
@@ -24,8 +23,7 @@ function mixin(target) {
return target;
}
var cradle = require('cradle');
var vows = require('vows');
var cradle = require('../lib/cradle');
vows.describe("Cradle").addBatch({
"Default connection settings": {
View
@@ -3,13 +3,10 @@ var path = require('path'),
assert = require('assert'),
events = require('events'),
http = require('http'),
fs = require('fs');
require.paths.unshift(path.join(__dirname, '..', 'lib'));
var vows = require('vows');
var cradle = require('cradle');
fs = require('fs'),
vows = require('vows');
var cradle = require('../lib/cradle');
var document = { _rev: '2-76be', _id: 'f6av8', name: 'buzz', age: 99 };
vows.describe('cradle/Response').addBatch({

1 comment on commit 60ebc76

@odessy

This comment has been minimized.

Show comment
Hide comment
@odessy

odessy Feb 15, 2012

change "sys" to "util"

odessy commented on 60ebc76 Feb 15, 2012

change "sys" to "util"

Please sign in to comment.