Skip to content

Instantly share code, notes, and snippets.

@al3x
Created March 13, 2009 22:20
Show Gist options
  • Save al3x/78799 to your computer and use it in GitHub Desktop.
Save al3x/78799 to your computer and use it in GitHub Desktop.
A part of UserSpec
"showing a nonexistant user returns 404" in {
withFormats(List("xml", "json")) { format =>
val response = User.show("jack", "asonetibaosneitb", format)
response mustNot beNull
response.code mustEqual 404
response
} mustNot beEmpty
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment