Permalink
Browse files

Allowing users to change precision. Fixing and adding tests

  • Loading branch information...
1 parent b1deca2 commit 0b6df5503d4c9085c9ee981df2cf3bfcdcae4e40 @mariano committed Oct 23, 2011
Showing with 10 additions and 3 deletions.
  1. +1 −1 lib/node-db
  2. +1 −1 package.json
  3. +8 −1 tests.js
Submodule node-db updated 3 files
+37 −8 query.cc
+2 −1 query.h
+22 −5 tests.js
View
@@ -2,7 +2,7 @@
, "description" : "Oracle database bindings for Node.JS"
, "keywords": ["database","db","native","binding","library","plugin","client","oracle","oci","occi"]
, "homepage" : "http://nodejsdb.org/db-oracle"
-, "version" : "0.1.5"
+, "version" : "0.1.6"
, "engines" : { "node" : ">=0.4.1" }
, "maintainers" :
[ { "name": "Mariano Iglesias"
View
@@ -1,8 +1,15 @@
/* Escape & Query building tests */
+var settings = JSON.parse(require('fs').readFileSync('./tests-settings.json','utf8'));
+
var client = require("./db-oracle");
var tests = require("./lib/node-db/tests.js").get(function() {
- return new client.Database();
+ new client.Database(settings).connect(function(err) {
+ if (err) {
+ throw new Error('Could not connect to test DB');
+ }
+ callback(this);
+ });
}, '"');
for(var test in tests) {

0 comments on commit 0b6df55

Please sign in to comment.