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:
self,
HashPopulator
|
|
Instance Chain:
self,
HashPopulator
|
|
Inherits: |
RSpec::Core::Metadata::HashPopulator
|
Defined in: | rspec-core/lib/rspec/core/metadata.rb |
Class Method Summary
HashPopulator
- Inherited
Instance Attribute Summary
HashPopulator
- Inherited
Instance Method Summary
- #described_class private Internal use only
- #full_description private Internal use only
HashPopulator
- Inherited
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