Skip to content

Commit

Permalink
make all lowercase to avoid problems with PG
Browse files Browse the repository at this point in the history
  • Loading branch information
janmeier committed Sep 3, 2013
1 parent 0b75f1b commit 4426196
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/dao-factory.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1426,14 +1426,14 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
var self = this
this.User.create({username: 'barfooz'}).success(function(user) {
self.UserPrimary = self.sequelize.define('UserPrimary', {
specialKey: {
specialkey: {
type: DataTypes.STRING,
primaryKey: true
}
})

self.UserPrimary.sync({force: true}).success(function() {
self.UserPrimary.create({specialKey: 'a string'}).success(function() {
self.UserPrimary.create({specialkey: 'a string'}).success(function() {
self.user = user
done()
})
Expand All @@ -1442,17 +1442,17 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})

it('does not modify the passed arguments', function (done) {
var options = { where: ['specialKey = ?', 'awesome']}
var options = { where: ['specialkey = ?', 'awesome']}

this.UserPrimary.find(options).success(function(user) {
expect(options).to.deep.equal({ where: ['specialKey = ?', 'awesome']})
expect(options).to.deep.equal({ where: ['specialkey = ?', 'awesome']})
done()
})
})

it('doesn\'t throw an error when entering in a non integer value for a specified primary field', function(done) {
this.UserPrimary.find('a string').success(function(user) {
expect(user.specialKey).to.equal('a string')
expect(user.specialkey).to.equal('a string')
done()
})
})
Expand Down

0 comments on commit 4426196

Please sign in to comment.