Sha256: 83715bbb27b23e184c9ea56b7d34aa4033d2b2b362bfd22da069c7b899d15d2e

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

describe HashExtractor do
  it "can pull values out from a hash" do
    extractor = HashExtractor.new({"foo" => "bar"}, nil)
    extractor["foo"].should eq "bar"
  end

  it "can pull values out from a symbol" do
    extractor = HashExtractor.new({:foo => "bar"}, nil)
    extractor["foo"].should eq "bar"
  end

  it "delegates to the parent if there is no match" do
    extractor = HashExtractor.new({}, HashExtractor.new({:foo => "bar"}, nil))
    extractor["foo"].should eq "bar"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
musterb-0.0.1 spec/musterb/hash_extractor_spec.rb