Cleanup testing data between test runs

This commit is contained in:
Akira Matsuda 2016-12-08 00:49:14 +09:00
parent 521517fcbf
commit 384eead564
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ if defined? ActiveRecord
teardown do
Book.delete_all
User.delete_all
Readership.delete_all
end
test 'it should reset total_count memoization when the scope is cloned' do