Skip to content

Commit

Permalink
Merge pull request #7 from groyoh/fix/readme
Browse files Browse the repository at this point in the history
Fix API description in README
  • Loading branch information
h2non committed Jun 3, 2016
2 parents 002d90a + 9ae917d commit c803471
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,19 @@ Asserts the response HTTP status code to be equal.

Asserts the response HTTP status to be within the given numeric range.

#### StatusOk(start, end int)
#### StatusOk()

Asserts the response HTTP status to be a valid server response (>= 200 && < 400).

#### StatusError(start, end int)
#### StatusError()

Asserts the response HTTP status to be a valid clint/server error response (>= 400 && < 600).

#### StatusServerError(start, end int)
#### StatusServerError()

Asserts the response HTTP status to be a valid server error response (>= 500 && < 600).

#### StatusClientError(start, end int)
#### StatusClientError()

Asserts the response HTTP status to be a valid client error response (>= 400 && < 500).

Expand Down Expand Up @@ -212,12 +212,12 @@ Asserts the response body with the given JSON struct.

Asserts the response body againts the given JSON schema definition.

`data` argument can be a `string` containing the JSON schema, a file path
`data` argument can be a `string` containing the JSON schema, a file path
or an URL pointing to the JSON schema definition.

#### AssertFunc(func (*http.Response, *http.Request) error)

Adds a new custom assertion function who should return an
Adds a new custom assertion function who should return an
detailed error in case that the assertion fails.

## Development
Expand Down Expand Up @@ -247,6 +247,6 @@ Run example:
go test ./_examples/simple/simple_test.go
```

## License
## License

MIT - Tomas Aparicio

0 comments on commit c803471

Please sign in to comment.