Class: AppMap::RSpec::ScopeExample

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Methods included from FeatureAnnotations

#annotations, #feature, #feature_group, #labels

Instance Attribute Details

#exampleObject Also known as: example_obj

Returns the value of attribute example

Returns:

  • (Object)

    the current value of example



131
132
133
# File 'lib/appmap/rspec.rb', line 131

def example
  @example
end

Instance Method Details

#descriptionObject



140
141
142
# File 'lib/appmap/rspec.rb', line 140

def description
  example.description
end

#description?Boolean

Returns:

  • (Boolean)


136
137
138
# File 'lib/appmap/rspec.rb', line 136

def description?
  true
end

#parentObject



144
145
146
# File 'lib/appmap/rspec.rb', line 144

def parent
  ScopeExampleGroup.new(example.example_group)
end