Sha256: 896a9f250a497991a49de74991bc6bbdc4a2ae0909efeeac45d33a234ad5f2d2

Contents?: true

Size: 684 Bytes

Versions: 12

Compression:

Stored size: 684 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
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
faraday-0.9.0.rc5 test/adapters/rack_test.rb
faraday-0.9.0.rc4 test/adapters/rack_test.rb
faraday-0.9.0.rc3 test/adapters/rack_test.rb
faraday-0.9.0.rc2 test/adapters/rack_test.rb
faraday-0.9.0.rc1 test/adapters/rack_test.rb
faraday-0.8.7 test/adapters/rack_test.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/faraday-0.8.6/test/adapters/rack_test.rb
faraday-0.8.6 test/adapters/rack_test.rb
faraday-0.8.5 test/adapters/rack_test.rb
faraday-0.8.4 test/adapters/rack_test.rb
faraday-0.8.2 test/adapters/rack_test.rb
avdi-faraday-0.8.1 test/adapters/rack_test.rb