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

Version Path
musterb-1.0.1 spec/musterb/object_extractor_spec.rb
musterb-1.0.0 spec/musterb/object_extractor_spec.rb
musterb-0.2.0 spec/musterb/object_extractor_spec.rb
musterb-0.1.2 spec/musterb/object_extractor_spec.rb
musterb-0.1.1 spec/musterb/object_extractor_spec.rb
musterb-0.1.0 spec/musterb/object_extractor_spec.rb
musterb-0.0.7 spec/musterb/object_extractor_spec.rb
musterb-0.0.6 spec/musterb/object_extractor_spec.rb
musterb-0.0.5 spec/musterb/object_extractor_spec.rb
musterb-0.0.4 spec/musterb/object_extractor_spec.rb
musterb-0.0.3 spec/musterb/object_extractor_spec.rb
musterb-0.0.2 spec/musterb/object_extractor_spec.rb