Browse files

Allow clearing of mocks and data selectively

  • Loading branch information...
1 parent eefa4d5 commit 00acee84cb727fe51ad35973d81e63f11dadf1ab @ijcd committed Mar 14, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/hoodwink.rb
View
8 lib/hoodwink.rb
@@ -58,7 +58,15 @@ def self.disable_net_connect!(*args)
end
def self.reset
+ reset_mocks
+ reset_datastore
+ end
+
+ def self.reset_mocks
interceptor.reset
+ end
+
+ def self.reset_datastore
datastore.clear!
end

0 comments on commit 00acee8

Please sign in to comment.