Skip to content

Commit

Permalink
Fix scenario
Browse files Browse the repository at this point in the history
We need to use the pretty formatter because we're now actually handling
and printing the before hook exception in the formatter, where Cucumber
1.x was just throwing the exception and stopping Cucumber in its tracks.

Progress formatter doesn't print exception messages (though perhaps it
should?) so we need to use pretty.
  • Loading branch information
mattwynne committed Aug 22, 2014
1 parent c3e4fe2 commit 390890b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions features/docs/wire_protocol.feature
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,13 @@ Feature: Wire Protocol
#
# # Bad Response
#
@wip
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 progress`
Then the stderr should contain exactly:
When I run `cucumber -f pretty`
Then the stdout should contain:
"""
undefined method `handle_yikes'
"""

0 comments on commit 390890b

Please sign in to comment.