4 ms·
There's always a scenario where this can break though. What happens if someone introduces a test that confirms that marking `active1` as inactive works. Then it
by sceptic123 11mo ago
There's always a scenario where this can break though. What happens if someone introduces a test that confirms that marking `active1` as inactive works. Then it depends on the test order whether your initial test still passes.
- radanskoric 11mo agoIt's required for tests to clean up after themselves. With Rails and fixtures this is handled by default: each test runs inside a transaction which is rolled back at the end of the test. That way each test starts with the same initial state.