Folks,
I started writing some ESME tests and got very cranky with Lift's TestKit
(what kind of fool wrote those APIs anyway... oh, look, here's a mirror and
I'm looking at the fool).
I spent a couple of hours cleaning up the Lift TestKit APIs so that tests
will look like:
"Login" in {
for{
login <- post("/api/login", "token" -> token) !@ "Failed to log in"
if (testSuccess(login))
status <- login.get("/api/status") !@ "Failed to get status" if
(testSuccess(status))
} {
(status.xml \ "user" \ "@id").text must_== theUser.id.toString
}
}
Once the Lift changes get approved and propagated, I'll post up the new API
test code.
I plan to spend more time in ESME-land on Thursday and will get some of the
user edit and OpenID stuff finished.
Thanks,
David
PS -- What's the ETA for the new templates?
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics