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

Commit a7081a88 by pola88

Problem with created_at and updated_at

1 parent 7c8bf549
Showing with 11 additions and 0 deletions
......@@ -750,6 +750,17 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
})
})
it('gets all associated objects with all fields', function(done) {
this.User.find({where: {username: 'John'}}).success(function (john) {
john.getTasks().success(function (tasks) {
tasks[0].attributes.forEach(function(attr) {
expect(tasks[0]).to.have.property(attr)
})
done()
})
})
})
it("gets all associated objects when no options are passed", function(done) {
this.User.find({where: {username: 'John'}}).success(function (john) {
john.getTasks().success(function (tasks) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!