Sha256: 0777ad997ddc55aa0c9f84ccde208d59171dbc8ebef023c361d57bbffdd04ae9
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
require "helper" module One def one; 1 end end module Two def two; 2 end end module Three def three; 3 end end class TestObjectProxyExtend < Test::Unit::TestCase test "extend works properly with array" do proxy = ObjectProxy.new("target", :extend => [One, Two, Three]) assert_equal 1, proxy.one assert_equal 2, proxy.two assert_equal 3, proxy.three end test "extend works with single value" do proxy = ObjectProxy.new("target", :extend => Two) assert_equal 2, proxy.two end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proxies-0.1.1 | test/test_object_proxy_extend.rb |
proxies-0.1.0 | test/test_object_proxy_extend.rb |