Sign in
apache
/
groovy
/
0b4cb8487bd3da9b9af5d15d0c5bc311b618ad96
/
.
/
groovy
/
modules
/
grails
/
samples
/
recipes
/
grails-tests
/
RecipeTests.groovy
blob: e0533bcc11512cc9440e08fc591771f8ea8bab85 [
file
] [
log
] [
blame
]
import
com
.
recipes
.
Recipe
class
RecipeTests
extends
GroovyTestCase
{
void
testDynamicMethods
()
{
def
r
=
new
Recipe
(
title
:
"Chicken Tikka"
,
description
:
"Yummy Indian Dish"
)
r
.
save
()
r
=
Recipe
.
findByTitle
(
"Chicken Tikka"
)
assert
r
!=
null
}
}