Created
March 13, 2009 22:20
-
-
Save al3x/78799 to your computer and use it in GitHub Desktop.
A part of UserSpec
This file contains 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
"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