Class: RSpec::Core::Metadata::ExampleHash
- Inherits:
-
HashPopulator
- Object
- HashPopulator
- RSpec::Core::Metadata::ExampleHash
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/metadata.rb
Instance Attribute Summary
Attributes inherited from HashPopulator
#block, #description_args, #metadata, #user_metadata
Class Method Summary collapse
Methods inherited from HashPopulator
Constructor Details
This class inherits a constructor from RSpec::Core::Metadata::HashPopulator
Class Method Details
.create(group_metadata, user_metadata, index_provider, description, block) ⇒ Object
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/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 |