Sha256: 61d078a28c3a80c97ac3f91057adbb35332c87812596c3b9253ea24a20a3313f

Contents?: true

Size: 558 Bytes

Versions: 12

Compression:

Stored size: 558 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 '/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 '/service.html'
    Then it should raise a Timeout::Error exception

Version data entries

12 entries across 12 versions & 6 rubygems

Version Path
ddollar-httparty-0.4.6 features/supports_timeout_option.feature
jcinnamond-httparty-0.4.5 features/supports_timeout_option.feature
jcinnamond-httparty-0.4.6 features/supports_timeout_option.feature
jnunemaker-httparty-0.4.5 features/supports_timeout_option.feature
jugend-httparty-0.5.2.3 features/supports_timeout_option.feature
httparty-0.5.2 features/supports_timeout_option.feature
httparty-0.5.1 features/supports_timeout_option.feature
luigi-httparty-0.5.0.1 features/supports_timeout_option.feature
luigi-httparty-0.5.0 features/supports_timeout_option.feature
httparty-0.5.0 features/supports_timeout_option.feature
luigi-httparty-0.4.6 features/supports_timeout_option.feature
httparty-0.4.5 features/supports_timeout_option.feature