Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Jun 30, 2016
1 parent 251b663 commit 447e226
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ func TestFruits(t *testing.T) {
}
}`

// validate JSON schema
repos := e.GET("/repos/octocat").
Expect().
Status(http.StatusOK).JSON().Schema(schema)
Status(http.StatusOK).JSON()

// validate JSON schema
repos.Schema(schema)

// run JSONPath query and iterate results
for _, private := range repos.Path("$..private").Array().Iter() {
Expand Down Expand Up @@ -261,7 +263,7 @@ func TestFruits(t *testing.T) {
Header("Location").
Match("http://(.+)/users/(.+)").Values("example.com", "john")

// check subexpressions by index or name
// check capture groups by index or name
m := e.GET("/users/john").
Expect().
Header("Location").Match("http://(?P<host>.+)/users/(?P<user>.+)")
Expand Down

0 comments on commit 447e226

Please sign in to comment.