Sha256: 7bdf7b1bf3692aa6e00980802d5dd60d9af1d14b10354b8b44ce68870d26bc1a
Contents?: true
Size: 795 Bytes
Versions: 11
Compression:
Stored size: 795 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 [Faraday::LiveServer] 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 # test not applicable undef test_connection_error undef test_proxy undef test_proxy_auth_fail end end
Version data entries
11 entries across 11 versions & 3 rubygems