Commit 5a50b7a
committed
Use MiniTest's built in after-test hooks
In 2fa18ac I made the following change:
-require 'test/unit'
+require 'minitest/unit'
This had the unintended consequence of running the test suite twice!
(Even weirder, that *only* happened on 1.9.2 and JRuby in 1.9 mode o_O)
Since the tests don't presently clean up after themselves or initialize
Redis into a clean state, this broke the build because the second test
run would fail.
Tenderlove recommened replacing the existing wonky at_exit handler with
a proper MiniTest::Unit.after_test hook and it fixed the problem. Plus
it's waaaay less wonky ;)1 parent f79aef4 commit 5a50b7a
1 file changed
+5
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 8 | | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 33 | + | |
42 | 34 | | |
43 | 35 | | |
44 | 36 | | |
45 | 37 | | |
46 | 38 | | |
47 | | - | |
48 | 39 | | |
49 | 40 | | |
50 | 41 | | |
| |||
0 commit comments