Commit 75c6271
committed
Adapt tests to Rails 8.2+ re-introduction of
See rails/rails#55788
This setting has gone through different stages, and we must account for
them:
- Rails 7.1: Method not available (no deferred enqueue)
- Rails 7.2: :default (defers to adapter's method, which returns true in
Solid Queue's case)
- Rails 8.0-8.1: false (no deferred enqueue, the setting was deprecated)
- Rails 8.2: true (deferred enqueue enabled by default)enqueue_after_transaction_commit
1 parent a0b35ea commit 75c6271
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
| |||
0 commit comments