test/yao/test_client.rb in yao-0.2.7 vs test/yao/test_client.rb in yao-0.2.8

- old
+ new

@@ -9,10 +9,11 @@ assert { cli.url_prefix.to_s == "http://cool-api.example.com:12345/v3.0" } handlers = [ Faraday::Request::Accept, Faraday::Request::UrlEncoded, + Faraday::Request::ReadOnly, Faraday::Response::OSErrorDetector, FaradayMiddleware::ParseJson, Faraday::Adapter::NetHttp ] assert { cli.builder.handlers == handlers } @@ -22,10 +23,11 @@ cli = Yao::Client.gen_client("http://cool-api.example.com:12345/v3.0", token: "deadbeaf") handlers = [ Faraday::Request::Accept, Faraday::Request::UrlEncoded, Faraday::Request::OSToken, + Faraday::Request::ReadOnly, Faraday::Response::OSErrorDetector, FaradayMiddleware::ParseJson, Faraday::Adapter::NetHttp ] assert { cli.builder.handlers == handlers } @@ -36,9 +38,10 @@ cli = Yao::Client.gen_client("http://cool-api.example.com:12345/v3.0") handlers = [ Faraday::Request::Accept, Faraday::Request::UrlEncoded, + Faraday::Request::ReadOnly, Faraday::Response::OSErrorDetector, FaradayMiddleware::ParseJson, Faraday::Response::Logger, Faraday::Response::OSDumper, Faraday::Adapter::NetHttp