Sha256: 12132c3fca1210085b4e592cd3d13b1e0d4f577941086dab386c559d627826c7

Contents?: true

Size: 553 Bytes

Versions: 4

Compression:

Stored size: 553 Bytes

Contents

module ParallelRSpec
  # only the good bits of RSpec's Example class, those needed by the reporters and formatters and
  # marshallable.
  Example = Struct.new(:id, :description, :exception, :location_rerun_argument, :metadata) do
    def self.delegate_to_metadata(key)
      define_method(key) { metadata[key] }
    end

    delegate_to_metadata :execution_result
    delegate_to_metadata :file_path
    delegate_to_metadata :full_description
    delegate_to_metadata :location
    delegate_to_metadata :pending
    delegate_to_metadata :skip
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
parallel_rspec-1.2.0 lib/parallel_rspec/example.rb
parallel_rspec-0.5.0 lib/parallel_rspec/example.rb
parallel_rspec-0.4.1 lib/parallel_rspec/example.rb
parallel_rspec-0.3.1 lib/parallel_rspec/example.rb