jnicklas/turnip — pull request #142 by gongo (2014-09-12 14:49:09+00:00)
Title: Push failed step line to top of backtrace

refs: https://github.com/jnicklas/turnip/pull/141#issuecomment-55260126

v1.2.3 backtrace:

1. failed step description line
1. failed step implementation line

new backtrace:

1. failed step implementation line
1. failed step description line

```diff
got: 1

(compared using ==)
- # ./examples/errors.feature:8:in `it should die'
# ./examples/steps/steps.rb:14:in `block in '
# ./lib/turnip/execute.rb:25:in `step'
+ # ./examples/errors.feature:8:in `run_step'
+ # ./lib/turnip/rspec.rb:44:in `instance_eval'
# ./lib/turnip/rspec.rb:44:in `run_step'
# ./examples/errors.feature:8:in `block (6 levels) in run'
# ./examples/errors.feature:7:in `each'
# ./examples/errors.feature:7:in `block (5 levels) in run'
+ # ./examples/errors.feature:8:in `it should die'

4) raises errors Step missing and raise_error_for_unimplemented_steps is set When a step just does not exist
Failure/Error: When a step just does not exist
Turnip::Pending:
a step just does not exist
- # ./examples/errors.feature:11:in `a step just does not exist'
# ./lib/turnip/execute.rb:17:in `step'
+ # ./examples/errors.feature:11:in `run_step'
+ # ./lib/turnip/rspec.rb:44:in `instance_eval'
# ./lib/turnip/rspec.rb:44:in `run_step'
# ./examples/errors.feature:12:in `block (6 levels) in run'
# ./examples/errors.feature:11:in `each'
# ./examples/errors.feature:11:in `block (5 levels) in run'
+ # ./examples/errors.feature:11:in `a step just does not exist'
```