bzproxies 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module Proxies
9
9
  proxy = @proxies.first
10
10
  @target = @target.map do |i|
11
11
  unless i.respond_to? :stub?
12
- proxy.new i, :proxies => @proxies[1..-1]
12
+ proxy.new i, :proxies => @proxies[1..-1], :options => @options
13
13
  else
14
14
  i
15
15
  end
@@ -24,7 +24,7 @@ module Proxies
24
24
  proxy = @proxies.first
25
25
  @target = @target.map do |i|
26
26
  unless i.respond_to? :stub?
27
- proxy.new i, :proxies => @proxies[1..-1]
27
+ proxy.new i, :proxies => @proxies[1..-1], :options => @options
28
28
  else
29
29
  i
30
30
  end
@@ -11,7 +11,7 @@ module Proxies
11
11
 
12
12
  include Stub
13
13
 
14
- attr_reader :proxies
14
+ attr_reader :proxies, :options
15
15
 
16
16
 
17
17
 
@@ -1,3 +1,3 @@
1
1
  module Bzproxies
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -24,7 +24,7 @@ describe Proxies::ArrayProxy do
24
24
  context "if proxies" do
25
25
  before(:all) do
26
26
  @test = [1,2,3]
27
- @proxy = Proxies::ArrayProxy.new @test, :proxies => TestCovering
27
+ @proxy = Proxies::ArrayProxy.new @test, :proxies => TestCovering, :options => "test"
28
28
  end
29
29
 
30
30
  it "have a copy of given array" do
@@ -74,6 +74,10 @@ describe Proxies::ArrayProxy do
74
74
  @proxy.should each_respond_to :test?
75
75
 
76
76
  end
77
+
78
+ it "should pass options recursively" do
79
+ @proxy.map(&:options).should == (0...@proxy.length).map{|i| "test"}
80
+ end
77
81
  end
78
82
 
79
83
  context "if doesn't proxy" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bzproxies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: