Sha256: 7daf4c3361566cb4d02f75b1c62eaa28b6f4c158d4323549cd9a4b9b8f8ac6a9

Contents?: true

Size: 940 Bytes

Versions: 102

Compression:

Stored size: 940 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 '/landing_service.html'
    And the url '/redirector.html' redirects to '/landing_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

102 entries across 100 versions & 15 rubygems

Version Path
httparty-enterprise-edition-0.13.1 features/supports_redirection.feature
httparty-0.13.1 features/supports_redirection.feature
yoyle439587298-0.13.0 features/supports_redirection.feature
plyom_user-0.3.1 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.3.0 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.2.9 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.2.8 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
httparty-0.13.0 features/supports_redirection.feature
plyom_user-0.2.7 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.2.6 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.2.5 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.2.4 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.2.3 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.2.2 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.2.1 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.2.0 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.1.9 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.1.8 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.1.7 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature
plyom_user-0.1.6 vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature