Sha256: 8dbadcd2a2786f333beb7b75ef826167ab7b2974991f19d98f3d609d45ee26a8
Contents?: true
Size: 390 Bytes
Versions: 12
Compression:
Stored size: 390 Bytes
Contents
describe Musterb::ObjectExtractor do it "calls methods on the object" do extractor = Musterb::ObjectExtractor.new(2, nil) extractor["to_s"].should eq "2" end it "delegates to the parent if there it doesn't respnd to something" do extractor = Musterb::ObjectExtractor.new(2, Musterb::ObjectExtractor.new("string", nil)) extractor["upcase"].should eq "STRING" end end
Version data entries
12 entries across 12 versions & 1 rubygems