rr 0.10.6 → 0.10.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +3 -0
- data/VERSION.yml +1 -1
- data/lib/rr/injections/double_injection.rb +3 -2
- metadata +1 -1
data/CHANGES
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
- Fixed issue with DoubleInjections binding to objects overriding the method method.
|
2
|
+
|
3
|
+
0.10.6
|
1
4
|
- Added MIT license
|
2
5
|
- Fixed Bug - dont_allow doesn't work when it follows stub (http://github.com/btakita/rr/issues#issue/20)
|
3
6
|
- Fixed exception with DoubleInjections on proxy objects (http://github.com/btakita/rr/issues#issue/24)
|
data/VERSION.yml
CHANGED
@@ -100,8 +100,9 @@ module RR
|
|
100
100
|
|
101
101
|
protected
|
102
102
|
def subject_is_proxy_for_method?(method_name)
|
103
|
-
|
104
|
-
|
103
|
+
subject_eigen = (class << @subject; self; end)
|
104
|
+
method_owner = subject_eigen.instance_methods.include?(method_name.to_s) ? subject_eigen.instance_method(method_name).owner : nil
|
105
|
+
!method_owner || !(subject_class.object_id == method_owner.object_id || subject_class.ancestors.include?(method_owner))
|
105
106
|
end
|
106
107
|
|
107
108
|
def deferred_bind_method
|