Class: AppMap::RSpec::ScopeExample

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

Instance Attribute Details

#exampleObject Also known as: example_obj

Returns the value of attribute example

Returns:

  • (Object)

    the current value of example



20
21
22
# File 'lib/appmap/rspec.rb', line 20

def example
  @example
end

Instance Method Details

#descriptionObject



27
28
29
# File 'lib/appmap/rspec.rb', line 27

def description
  example.description
end

#description?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/appmap/rspec.rb', line 23

def description?
  true
end

#parentObject



31
32
33
# File 'lib/appmap/rspec.rb', line 31

def parent
  ScopeExampleGroup.new(example.example_group)
end