Commit c165d46
committed
RUBY-3824 Restore conditional skip logic in transactions spec runner
A rubocop autocorrect in commit 8db6431 flattened the original
guarded skips into bare `skip` calls inside a single before(:all)
block, so every transactions and transactions_api example was
unconditionally pending with "Requirements not satisfied" (or
"No reason given") regardless of topology or other requirements.
Restore the original behavior: skip on `test.skip_reason` only when
one is set, skip on unmet requirements only when `req.satisfied?` is
false. Receive `req` from the block instead of `_req`.1 parent 88ead99 commit c165d46
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
0 commit comments