Thorsten Eckel
|
cfc1bdbb45
Refactoring: NO_RESET_BEFORE_SUITE is not practical for the general use case of running RSpec multiple times and slows down/decreases DX.
|
5 years ago |
Thorsten Eckel
|
b80cfda86e
Added ENV NO_RESET_BEFORE_SUITE to allow RSpec test suite start without DB reset (for e.g. running single tests where no DB reset is needed).
|
6 years ago |
Thorsten Eckel
|
02ba0e455e
Added db_strategy (:truncaction) meta helper to switch to DB cleanup via truncation (from transaction) for single examples. We choose to stick to Rails/RSpec transactional cleanup over DatabaseCleaner transaction strategy because of performance reasons. Rails default performs between 30 and 50% better.
|
6 years ago |
Thorsten Eckel
|
e006684c83
Added RSpec support file to initialize database into clean state before running suite.
|
6 years ago |