Skip to content

Instantly share code, notes, and snippets.

@remeniuk
Created December 26, 2011 15:21
Show Gist options
  • Save remeniuk/1521382 to your computer and use it in GitHub Desktop.
Save remeniuk/1521382 to your computer and use it in GitHub Desktop.
val ideaJSON = """{"author":{"id":"1","name":"John Smith"},"body":"Dummy idea body","date":"1267605359042","id":"Dummy Idea ID","subject":"Dummy Idea","topic":{"id":"1","name":"General"}}"""
"New idea, submitted via REST-service (PUT idea to resource location) " should{
"appear in the list of ideas (GET ideas from resource location)" in{
ideaResource.addIdeaToTopic(null, ideaJSON.getBytes)
ideasResource.getIdeas("1") must eventually(include(""""id":"Dummy Idea ID","subject":"Dummy Idea","topic":{"id":"1","name":"General"}}"""))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment