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

Commit dbc3cdec by Daniel Durante

Added #create specs for dao-validation tests.

1 parent f37ceaf3
Showing with 4 additions and 1 deletions
...@@ -260,7 +260,7 @@ describe(Support.getTestDialectTeaser("DaoValidator"), function() { ...@@ -260,7 +260,7 @@ describe(Support.getTestDialectTeaser("DaoValidator"), function() {
} }
} }
describe.only('#create', function() { describe('#create', function() {
beforeEach(function(done) { beforeEach(function(done) {
var self = this var self = this
...@@ -297,11 +297,14 @@ describe(Support.getTestDialectTeaser("DaoValidator"), function() { ...@@ -297,11 +297,14 @@ describe(Support.getTestDialectTeaser("DaoValidator"), function() {
self.Task.create({something: 1}).success(function(task) { self.Task.create({something: 1}).success(function(task) {
project.setTask(task).success(function(task) { project.setTask(task).success(function(task) {
expect(task.ProjectId).to.not.be.null expect(task.ProjectId).to.not.be.null
task.setProject(project).success(function(project) {
expect(project.ProjectId).to.not.be.null
done() done()
}) })
}) })
}) })
}) })
})
it('correctly throws an error using create method ', function(done) { it('correctly throws an error using create method ', function(done) {
var self = this var self = this
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!