Skip to content

Commit

Permalink
Append adapter name to shared tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Sep 3, 2012
1 parent d069e3e commit 8d60236
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
7 changes: 5 additions & 2 deletions test/adapters/mongo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -50,7 +51,9 @@ tests = {

};

utils.mixin(tests, require('../shared'));
for (var p in shared) {
tests[p + ' (Mongo)'] = shared[p];
}

module.exports = tests;

8 changes: 5 additions & 3 deletions test/adapters/riak/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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;
7 changes: 5 additions & 2 deletions test/adapters/sql/postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.