Sha256: 1fe0913a7b86837e69fac3aff68e8e8e0a4f4dc3dd8104eae364910a93290ed6

Contents?: true

Size: 1.28 KB

Versions: 8

Compression:

Stored size: 1.28 KB

Contents

Feature:  Verify application's output
  I want to test that my application sends the correct requests to an external service
  As a tester trying to test the application
  So that I can verify my application independently of external services 

  Background:
    Given I setup my capture service

  Scenario:  Retrieve posts
    When I make 3 posts
    Then the service has received 3 posts

  Scenario Outline: HTTP methods
    When I do a <method> on "<endpoint>"
    Then the service has recieved a request on "<endpoint>"
    Examples:
      | method | endpoint |
      | POST   | /poster  |
      | PUT    | /putter  |

  @not_1.9.2
  Scenario Outline: HTTP methods
    When I do a <method> on "<endpoint>"
    Then the service has recieved a request on "<endpoint>"
    Examples:
      | method | endpoint |
      | PATCH  | /patcher |

  Scenario: Verifying headers
    When I do a POST on "/poster"
    #This is not an exhaustive list
    When the headers for the request on "/poster" should contain:
      | PATH_INFO       | /poster   |
      | QUERY_STRING    |           |
      | REQUEST_METHOD  | POST      |
      | SERVER_NAME     | 127.0.0.1 |
      | SERVER_PORT     | 9292      |
      | SERVER_PROTOCOL | HTTP/1.1  |
      | HTTP_VERSION    | HTTP/1.1  |
      | REQUEST_PATH    | /poster   |

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pinch_hitter-0.5.6 features/verify.feature
pinch_hitter-0.5.5 features/verify.feature
pinch_hitter-0.5.4 features/verify.feature
pinch_hitter-0.5.3 features/verify.feature
pinch_hitter-0.5.2 features/verify.feature
pinch_hitter-0.5.1 features/verify.feature
pinch_hitter-0.5 features/verify.feature
pinch_hitter-0.4 features/verify.feature