Lightweight proxy for an example. This is the object that is passed to example-related methods in Spec::Runner::Formatter::BaseFormatter
Attributes
| description | [R] | This is the docstring passed to the it() method or any of its aliases |
| location | [R] | The file and line number at which the represented example was declared. This is extracted from caller, and is therefore formatted as an individual line in a backtrace. |
| options | [R] | Optional hash passed to the example declaration |
Public instance methods
backtrace
()
Deprecated - use location()
[show source]
# File lib/spec/example/example_proxy.rb, line 24 def backtrace Spec.deprecate("ExampleProxy#backtrace","ExampleProxy#location") location end