spec/httpi/adapter/excon_spec.rb in httpi-2.4.4 vs spec/httpi/adapter/excon_spec.rb in httpi-2.4.5
- old
+ new
@@ -21,8 +21,14 @@
read_timeout: 40,
write_timeout: 50
)
end
end
+ describe "host, hostname" do
+ it "both are set" do
+ Excon.expects(:display_warning).never
+ expect(adapter.client.data).to include(host: 'example.com', hostname: 'example.com')
+ end
+ end
end
end
end