Sha256: 4ac4bd2074f3762a5c976dedff003d9b17a0911adf492ab01f883c460e451788
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
require File.expand_path("../integration", __FILE__) require File.expand_path('../../live_server', __FILE__) module Adapters class RackTest < Faraday::TestCase def adapter() :rack end def adapter_options [FaradayTestServer] end # no Integration.apply because this doesn't require a server as a separate process include Integration::Common include Integration::NonParallel # not using shared test because error is swallowed by Sinatra def test_timeout conn = create_connection(:request => {:timeout => 1, :open_timeout => 1}) begin conn.get '/slow' rescue Faraday::Error::ClientError end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faraday-0.8.1 | test/adapters/rack_test.rb |
faraday-0.8.0 | test/adapters/rack_test.rb |