Class: Cucumber::Ast::Visitor
- Inherits:
-
Object
- Object
- Cucumber::Ast::Visitor
- Defined in:
- lib/sparky_cucumber.rb
Instance Method Summary collapse
- #orig_visit_features ⇒ Object
- #orig_visit_step_result ⇒ Object
- #visit_features(features) ⇒ Object
- #visit_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background) ⇒ Object
Instance Method Details
#orig_visit_features ⇒ Object
11 |
# File 'lib/sparky_cucumber.rb', line 11 alias :orig_visit_features :visit_features |
#orig_visit_step_result ⇒ Object
10 |
# File 'lib/sparky_cucumber.rb', line 10 alias :orig_visit_step_result :visit_step_result |
#visit_features(features) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/sparky_cucumber.rb', line 13 def visit_features(features) begin @sparky = Sparky.new @sparky.start_run orig_visit_features(features) ensure @sparky.finish_run end end |
#visit_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background) ⇒ Object
23 24 25 26 |
# File 'lib/sparky_cucumber.rb', line 23 def visit_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background) @sparky.send "example_#{status}" if [:passed, :failed, :pending].include?(status) orig_visit_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background) end |