Browse files

Fixes test table name for test-aggregate

  • Loading branch information...
1 parent 61a1074 commit 4b4d7503668a73ee4264cd96e140e0112aa8ed04 @dresende committed Apr 3, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/integration/test-aggregate.js
View
6 test/integration/test-aggregate.js
@@ -2,8 +2,8 @@ var common = require('../common');
var assert = require('assert');
common.createConnection(function (err, db) {
- common.createModelTable('test_count', db.driver.db, function () {
- common.insertModelData('test_count', db.driver.db, [
+ common.createModelTable('test_aggregate', db.driver.db, function () {
+ common.insertModelData('test_aggregate', db.driver.db, [
{ id : 1, name : 'test1' },
{ id : 2, name : 'test2' },
{ id : 3, name : 'test3' },
@@ -12,7 +12,7 @@ common.createConnection(function (err, db) {
], function (err) {
if (err) throw err;
- var TestModel = db.define('test_count', common.getModelProperties());
+ var TestModel = db.define('test_aggregate', common.getModelProperties());
TestModel.aggregate({ id: common.ORM.gt(2) }).count('id').min('id').max('id').get(function (err, count, min, max) {
assert.equal(err, null);

0 comments on commit 4b4d750

Please sign in to comment.