Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "saves the record on create" in {
- val request = FakeRequest(POST, "/countries").withJsonBody(Json.parse("""{ "country": {"title":"Germany", "abbreviation":"GER"} }"""))
- val create = route(app, request).get
- status(create) mustBe OK
- contentType(create) mustBe Some("application/json")
- contentAsString(create) must include("country")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement