Commit c07b77a
fix(ruby): always regenerate runtime-test fixtures before rspec
The `test` script guarded regeneration with `test -d ./lib || generate.sh`, so
it only rebuilt the generated bindings when lib/ was absent. lib/ is gitignored
generated output; when it was present but stale — built by an older
pacmak/rosetta — the specs silently ran against months-old bindings and reported
phantom failures (17, in a suite that is actually green).
Drop the guard so `yarn test` regenerates unconditionally. generate.sh is only a
few seconds and already `rm -rf lib` first, so this is cheap and eliminates the
stale-fixture failure mode. A comment in generate.sh warns against reinstating
the guard.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 208c432 commit c07b77a
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments