Ambition.Testing.TestResponse.assert_header_is – ambition Reference Manual
Packages
ambition
Ambition
Testing
TestResponse
request
response
result_content
state
TestResponse
assert_content_is
assert_content_isnt
assert_content_like
assert_content_type_is
assert_content_type_isnt
assert_content_type_like
assert_content_type_unlike
assert_content_unlike
assert_header_is
assert_header_isnt
assert_status_is
assert_status_isnt
assert_header_is
Description:
public
void
assert_header_is
(
string
header_name,
string
header_value)
Assert header exists and matches value.
Parameters:
header_name
Header name (ex: X-Powered-By)
header_value
Header value (ex: Ambition)