Skip to content

Commit

Permalink
teardown instantiated stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencepit committed Jun 22, 2008
1 parent 87ab1d7 commit ddb9b5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/model_stubbing/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit ddb9b5f

Please sign in to comment.