Module: RSpec::Core::Metadata::ExampleMetadataHash

Includes:
MetadataHash
Defined in:
lib/rspec/core/metadata.rb

Overview

Mixed in to Metadata for an Example (extends MetadataHash) to support lazy evaluation of some values.

Instance Method Summary collapse

Methods included from MetadataHash

#[]

Instance Method Details

#described_classObject



89
90
91
# File 'lib/rspec/core/metadata.rb', line 89

def described_class
  self[:example_group].described_class
end

#full_descriptionObject



93
94
95
# File 'lib/rspec/core/metadata.rb', line 93

def full_description
  build_description_from(self[:example_group][:full_description], *self[:description_args])
end