Class: AppMap::RSpec::ScopeExample
- Inherits:
-
Struct
- Object
- Struct
- AppMap::RSpec::ScopeExample
- Defined in:
- lib/appmap/rspec.rb
Overview
ScopeExample and ScopeExampleGroup is a way to handle the weird way that RSpec stores the nested example names.
Instance Attribute Summary collapse
-
#example ⇒ Object
(also: #example_obj)
Returns the value of attribute example.
Instance Method Summary collapse
Instance Attribute Details
#example ⇒ Object Also known as: example_obj
Returns the value of attribute example
19 20 21 |
# File 'lib/appmap/rspec.rb', line 19 def example @example end |
Instance Method Details
#description ⇒ Object
26 27 28 |
# File 'lib/appmap/rspec.rb', line 26 def description example.description end |
#description? ⇒ Boolean
22 23 24 |
# File 'lib/appmap/rspec.rb', line 22 def description? true end |
#parent ⇒ Object
30 31 32 |
# File 'lib/appmap/rspec.rb', line 30 def parent ScopeExampleGroup.new(example.example_group) end |