Class: AppMap::RSpec::ScopeExample
- Inherits:
-
Struct
- Object
- Struct
- AppMap::RSpec::ScopeExample
- Includes:
- FeatureAnnotations
- 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
Methods included from FeatureAnnotations
#annotations, #feature, #feature_group, #labels
Instance Attribute Details
#example ⇒ Object Also known as: example_obj
Returns the value of attribute example
65 66 67 |
# File 'lib/appmap/rspec.rb', line 65 def example @example end |
Instance Method Details
#description ⇒ Object
74 75 76 |
# File 'lib/appmap/rspec.rb', line 74 def description example.description end |
#description? ⇒ Boolean
70 71 72 |
# File 'lib/appmap/rspec.rb', line 70 def description? true end |
#parent ⇒ Object
78 79 80 |
# File 'lib/appmap/rspec.rb', line 78 def parent ScopeExampleGroup.new(example.example_group) end |