Commit 1f84070
Add Rails 7.1 compatibility (partial - 664/674 tests passing)
Implement Rails 7.1 compatibility fixes while maintaining backward
compatibility with Rails 6.1 and 7.0:
Changes:
- Fix version-conditional app initialization in test_helper.rb
- Rails 7.1+ requires TestApp.initialize! before rails/test_help
- Rails 6.1/7.0 require opposite order
- Fix schema compatibility in active_record.rb
- Change t.string :length option to :limit (Rails 7.1 deprecation)
- Change t.references :references option to foreign_key: false
- Disable SQLite foreign key constraints in test environment
- Rails 7.1 enables strict FK constraints by default
- Added PRAGMA foreign_keys = OFF for test compatibility
Backward compatibility verified:
- Rails 6.1.7.10: ✅ 674/674 tests passing
- Rails 7.0.10: ✅ 674/674 tests passing
Rails 7.1.6 status:
- 664/674 tests passing (98.5%)
- 1 failure: RequestTest expecting 422, got 0
- 9 errors: "Invalid response code: 0" in controller tests
Remaining work:
- Investigate and fix response code 0 errors
- Get all 674 tests passing in Rails 7.1.6
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 2524b75 commit 1f84070
File tree
4 files changed
+43
-24
lines changed- test
- fixtures
4 files changed
+43
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
| 327 | + | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 50 | | |
| 51 | + | |
60 | 52 | | |
61 | 53 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 54 | | |
74 | 55 | | |
75 | 56 | | |
| |||
91 | 72 | | |
92 | 73 | | |
93 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
94 | 108 | | |
95 | 109 | | |
96 | 110 | | |
| |||
214 | 228 | | |
215 | 229 | | |
216 | 230 | | |
217 | | - | |
| 231 | + | |
218 | 232 | | |
219 | 233 | | |
220 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
221 | 240 | | |
222 | 241 | | |
223 | 242 | | |
| |||
0 commit comments