Skip to content

Commit

Permalink
Revert "Fixed YAML serialization of a stubbed object."
Browse files Browse the repository at this point in the history
This reverts commit 793bd34.
  • Loading branch information
dchelimsky committed Oct 2, 2010
1 parent 793bd34 commit 8bb5142
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 35 deletions.
16 changes: 5 additions & 11 deletions lib/rspec/mocks/methods.rb
Expand Up @@ -72,18 +72,12 @@ def null_object?

private

@@mock_proxies = Hash.new do |hash, key|
hash[key] = key.instance_eval do
if Mock === self
Proxy.new(self, @name, @options)
else
Proxy.new(self)
end
end
end

def __mock_proxy
@@mock_proxies[self]
if Mock === self
@mock_proxy ||= Proxy.new(self, @name, @options)
else
@mock_proxy ||= Proxy.new(self)
end
end

def format_chain(*chain, &blk)
Expand Down
24 changes: 0 additions & 24 deletions spec/rspec/mocks/serialization_spec.rb

This file was deleted.

0 comments on commit 8bb5142

Please sign in to comment.