test/yao/test_client.rb in yao-0.13.1 vs test/yao/test_client.rb in yao-0.13.2
- old
+ new
@@ -12,10 +12,11 @@
assert { cli.builder.adapter == adapter }
handlers = [
Faraday::Request::Accept,
Faraday::Request::UrlEncoded,
+ Faraday::Request::UserAgent,
Faraday::Request::ReadOnly,
Faraday::Response::OSErrorDetector,
FaradayMiddleware::ParseJson
]
assert { cli.builder.handlers == handlers }
@@ -26,10 +27,11 @@
adapter = Faraday::Adapter::NetHttp
assert { cli.builder.adapter == adapter }
handlers = [
Faraday::Request::Accept,
Faraday::Request::UrlEncoded,
+ Faraday::Request::UserAgent,
Faraday::Request::OSToken,
Faraday::Request::ReadOnly,
Faraday::Response::OSErrorDetector,
FaradayMiddleware::ParseJson
]
@@ -43,9 +45,10 @@
adapter = Faraday::Adapter::NetHttp
assert { cli.builder.adapter == adapter }
handlers = [
Faraday::Request::Accept,
Faraday::Request::UrlEncoded,
+ Faraday::Request::UserAgent,
Faraday::Request::ReadOnly,
Faraday::Response::OSErrorDetector,
FaradayMiddleware::ParseJson,
Faraday::Response::Logger,
Faraday::Response::OSDumper