Created
December 26, 2011 15:21
-
-
Save remeniuk/1521382 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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