~ubuntu-branches/ubuntu/wily/cucumber/wily

« back to all changes in this revision

Viewing changes to features/docs/wire_protocol/handle_unexpected_response.feature

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier
  • Date: 2015-06-22 14:15:05 UTC
  • mfrom: (7.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20150622141505-n1nm8yw1gax8rd48
Tags: 2.0.0-2
Add 0005-clean_bin_cucumber.patch to prevent cucumber utility to try to
load non-existing files. (Closes: #789585)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@wire
 
2
Feature: Handle unexpected response
 
3
 
 
4
  When the server sends us back a message we don't understand, this is how Cucumber will behave.
 
5
 
 
6
  Background:
 
7
    Given a file named "features/wired.feature" with:
 
8
      """
 
9
      Feature: High strung
 
10
        Scenario: Wired
 
11
          Given we're all wired
 
12
 
 
13
      """
 
14
    And a file named "features/step_definitions/some_remote_place.wire" with:
 
15
      """
 
16
      host: localhost
 
17
      port: 54321
 
18
 
 
19
      """
 
20
 
 
21
  Scenario: Unexpected response
 
22
    Given there is a wire server running on port 54321 which understands the following protocol:
 
23
      | request                                              | response                            |
 
24
      | ["begin_scenario"]                                   | ["yikes"]                           |
 
25
      | ["step_matches",{"name_to_match":"we're all wired"}] | ["success",[{"id":"1", "args":[]}]] |
 
26
    When I run `cucumber -f pretty`
 
27
    Then the output should contain:
 
28
      """
 
29
      undefined method `handle_yikes'
 
30
      """