Class: RSpec::Distrib::SharedExampleGroupInclusionStackFrame Private

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/distrib/example_group.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Objects that mimic an RSpec::Core::SharedExampleGroupInclusionStackFrame on the Reporters.

This is necessary because the original object refers to objects which can’t be accessed on the leader.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(frame) ⇒ SharedExampleGroupInclusionStackFrame

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of SharedExampleGroupInclusionStackFrame.



216
217
218
219
220
221
# File 'lib/rspec/distrib/example_group.rb', line 216

def initialize(frame)
  @shared_group_name = frame.shared_group_name.to_s
  @inclusion_location = frame.inclusion_location
  @formatted_inclusion_location = frame.formatted_inclusion_location
  @description = frame.description
end

Instance Attribute Details

#descriptionObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



214
215
216
# File 'lib/rspec/distrib/example_group.rb', line 214

def description
  @description
end

#formatted_inclusion_locationObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



214
215
216
# File 'lib/rspec/distrib/example_group.rb', line 214

def formatted_inclusion_location
  @formatted_inclusion_location
end

#inclusion_locationObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



214
215
216
# File 'lib/rspec/distrib/example_group.rb', line 214

def inclusion_location
  @inclusion_location
end

#shared_group_nameObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



214
215
216
# File 'lib/rspec/distrib/example_group.rb', line 214

def shared_group_name
  @shared_group_name
end