zeevex_proxy 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zeevex_proxy/base.rb +8 -0
- data/lib/zeevex_proxy/version.rb +1 -1
- data/spec/proxy_base_spec.rb +2 -2
- metadata +1 -1
data/lib/zeevex_proxy/base.rb
CHANGED
@@ -12,6 +12,14 @@ module ZeevexProxy
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def initialize(*args); end
|
15
|
+
|
16
|
+
# this causes a warning
|
17
|
+
old_verbosity = $VERBOSE
|
18
|
+
$VERBOSE = nil
|
19
|
+
def object_id
|
20
|
+
__id__
|
21
|
+
end
|
22
|
+
$VERBOSE = old_verbosity
|
15
23
|
end
|
16
24
|
else
|
17
25
|
puts "Defining our own BasicObject"
|
data/lib/zeevex_proxy/version.rb
CHANGED
data/spec/proxy_base_spec.rb
CHANGED
@@ -65,8 +65,8 @@ describe ZeevexProxy::Base do
|
|
65
65
|
it "responds_to a defined method on Responder" do
|
66
66
|
proxy.should respond_to(:responder_method)
|
67
67
|
end
|
68
|
-
it "
|
69
|
-
proxy.object_id.
|
68
|
+
it "does not have the same object_id as the proxy target" do
|
69
|
+
proxy.object_id.should_not == object.object_id
|
70
70
|
end
|
71
71
|
it "returns target to __getobj__" do
|
72
72
|
proxy.__getobj__.should == object
|