Sha256: 147a9049bea3076e4c6fc6163b4abe074882d637817372715cc1ab340dbc7186

Contents?: true

Size: 625 Bytes

Versions: 101

Compression:

Stored size: 625 Bytes

Contents

Feature: Supports the timeout option
  In order to handle inappropriately slow response times
  As a developer
  I want my request to raise an exception after my specified timeout as elapsed

  Scenario: A long running response
    Given a remote service that returns '<h1>Some HTML</h1>'
    And that service is accessed at the path '/long_running_service.html'
    And that service takes 2 seconds to generate a response
    When I set my HTTParty timeout option to 1
    And I call HTTParty#get with '/long_running_service.html'
    Then it should raise a Timeout::Error exception
    And I wait for the server to recover

Version data entries

101 entries across 99 versions & 14 rubygems

Version Path
httparty-0.13.6 features/supports_timeout_option.feature
httpserious-0.13.5.lstoll1 features/supports_timeout_option.feature
httparty-0.13.5 features/supports_timeout_option.feature
httparty-0.13.4 features/supports_timeout_option.feature
httsoiree-0.13.3 features/supports_timeout_option.feature
allegro_api_client-0.0.9 gems/ruby/2.1.0/gems/httparty-0.13.1/features/supports_timeout_option.feature
httparty-0.13.3 features/supports_timeout_option.feature
allegro_api_client-0.0.8 gems/ruby/2.1.0/gems/httparty-0.13.1/features/supports_timeout_option.feature
allegro_api_client-0.0.7 gems/ruby/2.1.0/gems/httparty-0.13.1/features/supports_timeout_option.feature
httparty-0.13.2 features/supports_timeout_option.feature
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/supports_timeout_option.feature
allegro_api_client-0.0.6 gems/ruby/2.1.0/gems/httparty-0.13.1/features/supports_timeout_option.feature
allegro_api_client-0.0.5 gems/ruby/2.1.0/gems/httparty-0.13.1/features/supports_timeout_option.feature
allegro_api_client-0.0.4 gems/ruby/2.1.0/gems/httparty-0.13.1/features/supports_timeout_option.feature
allegro_api_client-0.0.3 gems/ruby/2.1.0/gems/httparty-0.13.1/features/supports_timeout_option.feature
allegro_api_client-0.0.2 gems/ruby/2.1.0/gems/httparty-0.13.1/features/supports_timeout_option.feature
allegro_api_client-0.0.1 gems/ruby/2.1.0/gems/httparty-0.13.1/features/supports_timeout_option.feature
httsoiree-0.13.1.1 features/supports_timeout_option.feature
httsoiree-0.13.1 features/supports_timeout_option.feature
httparty-enterprise-edition-0.13.1.1 features/supports_timeout_option.feature