Skip to content

Commit

Permalink
changed to conventional spec
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed May 22, 2012
1 parent c3ec7a6 commit b54f3e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Expand Up @@ -2,15 +2,11 @@ import groovyx.gaelyk.spock.*
import com.google.appengine.api.datastore.*
import static com.google.appengine.api.datastore.FetchOptions.Builder.*

class DatastoreServiceSpec extends GaelykUnitSpec {

def setup() {
groovlet 'dataStoreGroovlet.groovy'
}
class DatastoreGroovletSpec extends ConventionalGaelykUnitSpec {

def "the datastore is used from within the groovlet"() {
given: "the initialised groovlet is invoked and data is persisted"
dataStoreGroovlet.get()
groovletInstance.get()

when: "the datastore is queried for data"
def query = new Query("person")
Expand All @@ -25,3 +21,4 @@ class DatastoreServiceSpec extends GaelykUnitSpec {
}

}

0 comments on commit b54f3e3

Please sign in to comment.