不要怂,就是干,撸起袖子干!

You need to sign in or sign up before continuing.
Commit 44261965 by Jan Aagaard Meier

make all lowercase to avoid problems with PG

1 parent 0b75f1b7
Showing with 5 additions and 5 deletions
...@@ -1426,14 +1426,14 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -1426,14 +1426,14 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
var self = this var self = this
this.User.create({username: 'barfooz'}).success(function(user) { this.User.create({username: 'barfooz'}).success(function(user) {
self.UserPrimary = self.sequelize.define('UserPrimary', { self.UserPrimary = self.sequelize.define('UserPrimary', {
specialKey: { specialkey: {
type: DataTypes.STRING, type: DataTypes.STRING,
primaryKey: true primaryKey: true
} }
}) })
self.UserPrimary.sync({force: true}).success(function() { 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 self.user = user
done() done()
}) })
...@@ -1442,17 +1442,17 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -1442,17 +1442,17 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
}) })
it('does not modify the passed arguments', function (done) { 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) { this.UserPrimary.find(options).success(function(user) {
expect(options).to.deep.equal({ where: ['specialKey = ?', 'awesome']}) expect(options).to.deep.equal({ where: ['specialkey = ?', 'awesome']})
done() done()
}) })
}) })
it('doesn\'t throw an error when entering in a non integer value for a specified primary field', function(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) { this.UserPrimary.find('a string').success(function(user) {
expect(user.specialKey).to.equal('a string') expect(user.specialkey).to.equal('a string')
done() done()
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!