Skip to content

Instantly share code, notes, and snippets.

@vdichev
Created August 10, 2010 21:24
Show Gist options
  • Save vdichev/518049 to your computer and use it in GitHub Desktop.
Save vdichev/518049 to your computer and use it in GitHub Desktop.
for {
login <- get("/account/verify_credentials.xml", httpClient, Nil)
!@ "Failed to log in"
message <- login.post("/statuses/update.xml", "status" -> "test_msg1")
!@ "Couldn't post message"
xml <- message.xml
} {
// Specs' xml matcher
xml must \\(<text>test_msg1</text>)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment