Skip to content
Browse files

Revert "Merge pull request #443 from nicknovitski/patch-2"

This reverts commit ea668aa, reversing
changes made to 8010fc3.
  • Loading branch information...
1 parent ea668aa commit 5090cc334e2db6eefa3a6fc215f2d7d77eb0b264 @justinko justinko committed May 27, 2012
Showing with 15 additions and 2 deletions.
  1. +15 −2 lib/rspec/core/mocking/with_rr.rb
View
17 lib/rspec/core/mocking/with_rr.rb
@@ -5,10 +5,23 @@
module RSpec
module Core
module MockFrameworkAdapter
-
+
def self.framework_name; :rr end
- include RR::Adapters::RSpec2
+ include RR::Extensions::InstanceMethods
+
+ def setup_mocks_for_rspec
+ RR::Space.instance.reset
+ end
+
+ def verify_mocks_for_rspec
+ RR::Space.instance.verify_doubles
+ end
+
+ def teardown_mocks_for_rspec
+ RR::Space.instance.reset
+ end
+
end
end
end

0 comments on commit 5090cc3

Please sign in to comment.
Something went wrong with that request. Please try again.