RequestUrl = s"$BaseUrl/accounts" s"POST on $RequestUrl" should { "create an account with the provided email and password" in Api { val data = Json.obj( "email" -> "[email protected]", "password" -> "secret" ) val response = await(WS.url(RequestUrl).post(data)) response.status must be equalTo CREATED (response.json \ "message").as[String] === Messages("info.signup.success") } }