123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Core::Metadata::ExampleHash Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RSpec::Core::Metadata::HashPopulator
Defined in: rspec-core/lib/rspec/core/metadata.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Class Method Details

.create(group_metadata, user_metadata, index_provider, description, block)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/metadata.rb', line 214

def self.create(, , index_provider, description, block)
   = .dup
   = Hash.new(&ExampleGroupHash.backwards_compatibility_default_proc do |hash|
    hash[:parent_example_group]
  end)
  .update()

  [:execution_result] = Example::ExecutionResult.new
  [:example_group] = 
  [:shared_group_inclusion_backtrace] = SharedExampleGroupInclusionStackFrame.current_backtrace
  .delete(:parent_example_group)

  description_args = description.nil? ? [] : [description]
  hash = new(, , index_provider, description_args, block)
  hash.populate
  hash.
end

Instance Method Details

#described_class (private)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/metadata.rb', line 234

def described_class
  [:example_group][:described_class]
end

#full_description (private)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/metadata.rb', line 238

def full_description
  build_description_from(
    [:example_group][:full_description],
    [:description]
  )
end