test/yao/test_client.rb in yao-0.2.9 vs test/yao/test_client.rb in yao-0.2.10
- old
+ new
@@ -47,6 +47,12 @@
Faraday::Response::OSDumper,
Faraday::Adapter::NetHttp
]
assert { cli.builder.handlers == handlers }
end
+
+ def test_timeout
+ stub(Yao.config).timeout { 300 }
+ cli = Yao::Client.gen_client("http://cool-api.example.com:12345/v3.0")
+ assert { cli.options.timeout == 300 }
+ end
end