Class: Cucumber::Formatter::LegacyApi::Ast::Scenario
- Defined in:
- lib/cucumber/formatter/legacy_api/ast.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #backtrace_line(step_name = "#{name}", line = self.location.line) ⇒ Object
- #failed? ⇒ Boolean
- #line ⇒ Object
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location
281 282 283 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 281 def location @location end |
#name ⇒ Object
Returns the value of attribute name
281 282 283 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 281 def name @name end |
#status ⇒ Object
Returns the value of attribute status
281 282 283 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 281 def status @status end |
Instance Method Details
#backtrace_line(step_name = "#{name}", line = self.location.line) ⇒ Object
282 283 284 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 282 def backtrace_line(step_name = "#{name}", line = self.location.line) "#{location.on_line(line)}:in `#{step_name}'" end |
#failed? ⇒ Boolean
286 287 288 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 286 def failed? :failed == status end |
#line ⇒ Object
290 291 292 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 290 def line location.line end |