Sha256: ea5b887ccd5fed7acf3c94fd3d70c0dc7e0af44f32efa63b90c9a4c54b137656

Contents?: true

Size: 924 Bytes

Versions: 63

Compression:

Stored size: 924 Bytes

Contents

Feature: Supports Redirection

  As a developer
  I want to work with services that may redirect me
  And I want it to follow a reasonable number of redirects
  Because sometimes web services do that

  Scenario: A service that redirects once
    Given a remote service that returns 'Service Response'
    And that service is accessed at the path '/service.html'
    And the url '/redirector.html' redirects to '/service.html'
    When I call HTTParty#get with '/redirector.html'
    Then the return value should match 'Service Response'

  # TODO: Look in to why this actually fails...
  Scenario: A service that redirects to a relative URL

  Scenario: A service that redirects infinitely
    Given the url '/first.html' redirects to '/second.html'
    And the url '/second.html' redirects to '/first.html'
    When I call HTTParty#get with '/first.html'
    Then it should raise an HTTParty::RedirectionTooDeep exception

Version data entries

63 entries across 63 versions & 18 rubygems

Version Path
alexvollmer-httparty-0.3.1 features/supports_redirection.feature
alexvollmer-httparty-0.4.3 features/supports_redirection.feature
cluon-httparty-0.4.3 features/supports_redirection.feature
dbalatero-httparty-0.4.4 features/supports_redirection.feature
ddollar-httparty-0.4.6 features/supports_redirection.feature
geetarista-httparty-0.4.5 features/supports_redirection.feature
jcinnamond-httparty-0.4.5 features/supports_redirection.feature
jcinnamond-httparty-0.4.6 features/supports_redirection.feature
jnunemaker-httparty-0.2.10 features/supports_redirection.feature
jnunemaker-httparty-0.2.9 features/supports_redirection.feature
jnunemaker-httparty-0.3.0 features/supports_redirection.feature
jnunemaker-httparty-0.3.1 features/supports_redirection.feature
jnunemaker-httparty-0.4.0 features/supports_redirection.feature
jnunemaker-httparty-0.4.1 features/supports_redirection.feature
jnunemaker-httparty-0.4.2 features/supports_redirection.feature
jnunemaker-httparty-0.4.3 features/supports_redirection.feature
jnunemaker-httparty-0.4.4 features/supports_redirection.feature
jnunemaker-httparty-0.4.5 features/supports_redirection.feature
kerryb-httparty-0.3.2 features/supports_redirection.feature
kerryb-httparty-0.3.3 features/supports_redirection.feature