Class: ParallelRSpec::Example

Inherits:
Struct
  • Object
show all
Defined in:
lib/parallel_rspec/example.rb

Overview

only the good bits of RSpec’s Example class, those needed by the reporters and formatters and marshallable.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



6
7
8
# File 'lib/parallel_rspec/example.rb', line 6

def description
  @description
end

#example_groupObject

Returns the value of attribute example_group

Returns:

  • (Object)

    the current value of example_group



6
7
8
# File 'lib/parallel_rspec/example.rb', line 6

def example_group
  @example_group
end

#exceptionObject

Returns the value of attribute exception

Returns:

  • (Object)

    the current value of exception



6
7
8
# File 'lib/parallel_rspec/example.rb', line 6

def exception
  @exception
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



6
7
8
# File 'lib/parallel_rspec/example.rb', line 6

def id
  @id
end

#location_rerun_argumentObject

Returns the value of attribute location_rerun_argument

Returns:

  • (Object)

    the current value of location_rerun_argument



6
7
8
# File 'lib/parallel_rspec/example.rb', line 6

def location_rerun_argument
  @location_rerun_argument
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



6
7
8
# File 'lib/parallel_rspec/example.rb', line 6

def 
  @metadata
end

Class Method Details

.delegate_to_metadata(key) ⇒ Object



7
8
9
# File 'lib/parallel_rspec/example.rb', line 7

def self.(key)
  define_method(key) { [key] }
end