Module: RSpec::Core::Metadata::GroupMetadataHash

Defined in:
lib/rspec-english.rb

Instance Method Summary collapse

Instance Method Details

#full_descriptionObject



16
17
18
19
20
21
22
23
24
# File 'lib/rspec-english.rb', line 16

def full_description
    front = []
    back = []
    container_stack.reverse.each do |part|
        target = part[:type] == :context ? back : front
        target.push part[:description_args]
    end
    [front, back].map {|s| [do_build_description(*s.flatten)] }
end