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 79401b2.
  • Loading branch information
dchelimsky committed Oct 2, 2010
1 parent c94a566 commit 7499777
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 103 deletions.
1 change: 0 additions & 1 deletion lib/rspec/mocks/framework.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@
require 'rspec/mocks/errors' require 'rspec/mocks/errors'
require 'rspec/mocks/error_generator' require 'rspec/mocks/error_generator'
require 'rspec/mocks/space' require 'rspec/mocks/space'
require 'rspec/mocks/serialization'
13 changes: 4 additions & 9 deletions lib/rspec/mocks/methods.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -73,15 +73,10 @@ def null_object?
private private


def __mock_proxy def __mock_proxy
@mock_proxy ||= begin if Mock === self
mp = if Mock === self @mock_proxy ||= Proxy.new(self, @name, @options)
Proxy.new(self, @name, @options) else
else @mock_proxy ||= Proxy.new(self)
Proxy.new(self)
end

Serialization.fix_for(self)
mp
end end
end end


Expand Down
24 changes: 0 additions & 24 deletions lib/rspec/mocks/serialization.rb

This file was deleted.

69 changes: 0 additions & 69 deletions spec/rspec/mocks/serialization_spec.rb

This file was deleted.

0 comments on commit 7499777

Please sign in to comment.