Skip to content

Commit

Permalink
Update Response+Checks.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 authored Mar 19, 2018
1 parent fbb4d99 commit 4014186
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension TestableProperty where TestableType: Response {
}

public func has(statusCode value: HTTPStatus) -> Bool {
return has(statusCode: value)
return element.http.status.code == value.code
}

public func has(statusCode value: HTTPStatus, message: String) -> Bool {
Expand Down

0 comments on commit 4014186

Please sign in to comment.