Permalink
Browse files

Append adapter name to shared tests

  • Loading branch information...
1 parent d069e3e commit 8d60236e85f0d7f26f2447ef3e0d5609ab098c5c mde committed Sep 3, 2012
Showing with 15 additions and 7 deletions.
  1. +5 −2 test/adapters/mongo/index.js
  2. +5 −3 test/adapters/riak/index.js
  3. +5 −2 test/adapters/sql/postgres.js
@@ -11,7 +11,8 @@ var utils = require('utilities')
, Zooby = require('../../fixtures/zooby').Zooby
, User = require('../../fixtures/user').User
, Profile = require('../../fixtures/profile').Profile
- , Account = require('../../fixtures/account').Account;
+ , Account = require('../../fixtures/account').Account
+ , shared = require('../shared');
tests = {
'before': function (next) {
@@ -50,7 +51,9 @@ tests = {
};
-utils.mixin(tests, require('../shared'));
+for (var p in shared) {
+ tests[p + ' (Mongo)'] = shared[p];
+}
module.exports = tests;
@@ -11,7 +11,8 @@ var utils = require('utilities')
, Zooby = require('../../fixtures/zooby').Zooby
, User = require('../../fixtures/user').User
, Profile = require('../../fixtures/profile').Profile
- , Account = require('../../fixtures/account').Account;
+ , Account = require('../../fixtures/account').Account
+ , shared = require('../shared');
tests = {
'before': function () {
@@ -29,9 +30,10 @@ tests = {
assert.ok(adapter instanceof Adapter);
}
-
};
-utils.mixin(tests, require('../shared'));
+for (var p in shared) {
+ tests[p + ' (Riak)'] = shared[p];
+}
module.exports = tests;
@@ -20,7 +20,8 @@ var utils = require('utilities')
, Zooby = require('../../fixtures/zooby').Zooby
, User = require('../../fixtures/user').User
, Profile = require('../../fixtures/profile').Profile
- , Account = require('../../fixtures/account').Account;
+ , Account = require('../../fixtures/account').Account
+ , shared = require('../shared');
tests = {
'before': function (next) {
@@ -218,6 +219,8 @@ tests = {
};
-utils.mixin(tests, require('../shared'));
+for (var p in shared) {
+ tests[p + ' (Postgres)'] = shared[p];
+}
module.exports = tests;

0 comments on commit 8d60236

Please sign in to comment.