#[macro_use] extern crate json;
#[macro_use] extern crate noir;
#[macro_use]
mod base_test;
test!();
#[test]
fn test_responses_provided_out_of_order() {
let actual = {
API::get("/responses/two")
.provide(responses![
EXAMPLE.get("/two"),
EXAMPLE.get("/one")
])
.collect()
};
assert_fail!(r#"
Response Failure: GET request to \"http://localhost:4000/responses/two\" returned
2 error(s)
1)
Request Failure: GET response provided for \"https://example.com/two\" returned
1 error(s)
1.1) Response fetched out of order, provided for request 1,
fetched by request 2.
2)
Request Failure: GET response provided for \"https://example.com/one\" returned
1 error(s)
2.1) Response fetched out of order, provided for request 2,
fetched by request 1.
"#, actual);
}