Module: RSpec::Longrun::DSL
- Defined in:
- lib/rspec/longrun/dsl.rb
Defined Under Namespace
Classes: NullStepFormatter
Instance Method Summary collapse
Instance Method Details
#step(description) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rspec/longrun/dsl.rb', line 5 def step(description) rspec_longrun_formatter.step_started(description) begin yield if block_given? rspec_longrun_formatter.step_finished rescue => e rspec_longrun_formatter.step_errored(e) raise e end end |