Advertisement
Guest User

Untitled

a guest
Jun 26th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. "saves the record on create" in {
  2. val request = FakeRequest(POST, "/countries").withJsonBody(Json.parse("""{ "country": {"title":"Germany", "abbreviation":"GER"} }"""))
  3. val create = route(app, request).get
  4.  
  5. status(create) mustBe OK
  6. contentType(create) mustBe Some("application/json")
  7. contentAsString(create) must include("country")
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement