Module: RSpecStepwise::StepExample

Defined in:
lib/rspec-steps/stepwise.rb

Instance Method Summary collapse

Instance Method Details

#run_after_eachObject



52
53
54
# File 'lib/rspec-steps/stepwise.rb', line 52

def run_after_each
  @example_group_class.run_after_step(self)
end

#run_before_eachObject



46
47
48
49
50
# File 'lib/rspec-steps/stepwise.rb', line 46

def run_before_each
  @example_group_class.run_before_step(self)
rescue Object => ex
  puts "\n#{__FILE__}:#{__LINE__} => #{[ex, ex.backtrace].pretty_inspect}"
end

#with_around_hooksObject



56
57
58
# File 'lib/rspec-steps/stepwise.rb', line 56

def with_around_hooks
  yield
end