spec/musterb/hash_extractor_spec.rb in musterb-0.0.1 vs spec/musterb/hash_extractor_spec.rb in musterb-0.0.2

- old
+ new

@@ -1,16 +1,16 @@ -describe HashExtractor do +describe Musterb::HashExtractor do it "can pull values out from a hash" do - extractor = HashExtractor.new({"foo" => "bar"}, nil) + extractor = Musterb::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 = Musterb::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 = Musterb::HashExtractor.new({}, Musterb::HashExtractor.new({:foo => "bar"}, nil)) extractor["foo"].should eq "bar" end end \ No newline at end of file