Skip to content
Browse files

fix failing test

  • Loading branch information...
1 parent 9739ccc commit 77a64d67b2c9e3a1e66b4dde9b766e69ca620583 @graemerocher graemerocher committed
View
6 ...test/groovy/org/codehaus/groovy/grails/web/binding/DataBindingWithAssociationTests.groovy
@@ -57,12 +57,14 @@ class Captain {
}
void testDataBindingViaConstructorCall() {
+ def Author = ga.getDomainClass("databindingwithassociationtests.Author").clazz
+ def Book = ga.getDomainClass("databindingwithassociationtests.Book3").clazz
- def a = new DataBindingWithAssociationAuthor(name:"Stephen").save(flush:true)
+ def a = Author.newInstance(name:"Stephen").save(flush:true)
assert a != null : "should have saved the Author"
- def b = new DataBindingWithAssociationBook(author: a, title:"Book 1", isbn: "308943")
+ def b = Book.newInstance(author: a, title:"Book 1", isbn: "308943")
assert b.author == a
assert b.title == "Book 1"
}

0 comments on commit 77a64d6

Please sign in to comment.
Something went wrong with that request. Please try again.