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



4
5
6
# File 'lib/parallel_rspec/example.rb', line 4

def description
  @description
end

#exceptionObject

Returns the value of attribute exception

Returns:

  • (Object)

    the current value of exception



4
5
6
# File 'lib/parallel_rspec/example.rb', line 4

def exception
  @exception
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/parallel_rspec/example.rb', line 4

def id
  @id
end

#location_rerun_argumentObject

Returns the value of attribute location_rerun_argument

Returns:

  • (Object)

    the current value of location_rerun_argument



4
5
6
# File 'lib/parallel_rspec/example.rb', line 4

def location_rerun_argument
  @location_rerun_argument
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



4
5
6
# File 'lib/parallel_rspec/example.rb', line 4

def 
  @metadata
end

Class Method Details

.delegate_to_metadata(key) ⇒ Object



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

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