Sha256: 162c6ed0ee9c7e2765ffce8cf7ae3f4e77d308f9cbc4de2a70618d7eae7194da

Contents?: true

Size: 1015 Bytes

Versions: 5

Compression:

Stored size: 1015 Bytes

Contents

@wire
Feature: Handle unexpected response

  When the server sends us back a message we don't understand, this is how Cucumber will behave.

  Background:
    Given a file named "features/wired.feature" with:
      """
      Feature: High strung
        Scenario: Wired
          Given we're all wired

      """
    And a file named "features/step_definitions/some_remote_place.wire" with:
      """
      host: localhost
      port: 54321

      """

  Scenario: Unexpected response
    Given there is a wire server running on port 54321 which understands the following protocol:
      | request                                              | response                            |
      | ["begin_scenario"]                                   | ["yikes"]                           |
      | ["step_matches",{"name_to_match":"we're all wired"}] | ["success",[{"id":"1", "args":[]}]] |
    When I run `cucumber -f pretty`
    Then the output should contain:
      """
      undefined method `handle_yikes'
      """

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-2.1.0 features/docs/wire_protocol/handle_unexpected_response.feature
cucumber-2.0.2 features/docs/wire_protocol/handle_unexpected_response.feature
cucumber-2.0.1 features/docs/wire_protocol/handle_unexpected_response.feature
cucumber-2.0.0 features/docs/wire_protocol/handle_unexpected_response.feature
cucumber-2.0.0.rc.5 features/docs/wire_protocol/handle_unexpected_response.feature