Sha256: 7c86b9f0a7f8b22f77d63301df17dd91b781f4651ec59db352c6a17b6aac5c61

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

require "spec_helper"

describe VCAP::Concurrency::Proxy do
  describe "#method_missing" do
    it "should proxy method calls to the underlying object" do
      proxied_object = ["hi"]
      proxy = VCAP::Concurrency::Proxy.new(proxied_object)
      proxy << "there"

      proxied_object.should == ["hi", "there"]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vcap-concurrency-0.1.0 spec/proxy_spec.rb