Browse files

teardown instantiated stubs

  • Loading branch information...
1 parent 87ab1d7 commit ddb9b5fc9949c78c8d7f7c058566501f8134c7f9 @lawrencepit lawrencepit committed Jun 22, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/model_stubbing/definition.rb
View
2 lib/model_stubbing/definition.rb
@@ -112,6 +112,8 @@ def setup_test_run
end
def teardown_test_run
+ ModelStubbing.records.clear
+ # TODO: teardown Time.stubs(:now)
return unless database?
ActiveRecord::Base.connection.rollback_db_transaction
ActiveRecord::Base.verify_active_connections!

0 comments on commit ddb9b5f

Please sign in to comment.