Commit e301625
committed
Fix bundler environment isolation in integration tests
Use Bundler.with_unbundled_env to wrap spec execution to prevent
bundler state pollution between test runs. This fixes issues where
non-Rails tests would fail after Rails integration tests because
bundler was using cached configuration from the Rails test bundle.
Also clear RUBYOPT in the env to prevent automatic bundler/setup
loading from CI or previous tests.1 parent ccdca7f commit e301625
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | | - | |
| 95 | + | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| |||
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
134 | | - | |
135 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
136 | 144 | | |
137 | 145 | | |
138 | 146 | | |
| |||
0 commit comments