diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-01-15 14:08:45 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-01-16 09:33:45 +0100 |
commit | f00524375ddefba587bb32e505de5787f0fae695 (patch) | |
tree | 1b2eed7ca68052bac24e010cb474b96b2a273aaa /ci | |
parent | 8e1735e26c378b1ffa8f82ea00f1f498d39c7e9e (diff) | |
download | rails-f00524375ddefba587bb32e505de5787f0fae695.tar.gz rails-f00524375ddefba587bb32e505de5787f0fae695.tar.bz2 rails-f00524375ddefba587bb32e505de5787f0fae695.zip |
use `teardown` for cleanup, not `setup`.
This solves order dependent issues where the last test
leaked the query cache state. This resulted in the following error:
```
QueryCacheExpiryTest#test_cache_is_expired_by_habtm_delete [test/cases/query_cache_test.rb:275]:
not all expectations were satisfied
unsatisfied expectations:
- expected exactly twice, invoked once: #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x7f93e0c65838>.clear_query_cache(any_parameters)
```
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions