Skip to content

Commit

Permalink
Use __remove_mock_proxy per PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jshraibman-mdsol committed Mar 19, 2013
1 parent 47fc9a2 commit 4c8c6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/mocks/methods.rb
Expand Up @@ -136,7 +136,7 @@ def __mock_proxy
end
proxy_for_obj_id = @mock_proxy.instance_eval{ @object.object_id }
if proxy_for_obj_id != self.object_id
@mock_proxy = nil
__remove_mock_proxy
__mock_proxy
end
@mock_proxy
Expand Down

0 comments on commit 4c8c6cd

Please sign in to comment.