Commit 5d4d0cb
committed
Fix failing fixture support test on Rails main
This test is failing since setup_fixtures was made private in
rails/rails@29fe344.
It was added in 82241e9 to exercise the
call to `name` in Rails' `run_in_transaction?` method:
https://github.com/rails/rails/blob/b4ab1f19d8bcc4639c7379b560f000f01753b5b0/activerecord/lib/active_record/test_fixtures.rb#L101
However since 9272757, RSpec Rails
overrides `run_in_transaction?`, so `name` is no longer called. We can
get even better integration coverage of an example group with
use_transactional_tests set to false by actually running an example.1 parent 40af4f0 commit 5d4d0cb
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | | - | |
47 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | | - | |
| 55 | + | |
| 56 | + | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
| |||
0 commit comments