Commit 03b03c7
Fix Ruby 3.2/3.3 compatibility in Fixnum test
Replace Fixnum with Integer in spec/rails_spec.rb to fix test failures
on Ruby 3.2 and 3.3.
Background:
- Fixnum and Bignum were unified into Integer in Ruby 2.4
- The test was monkey-patching Fixnum, which behaves differently in Ruby 3.2+
- This caused the "default per page in model" test to fail for Kaminari
and WillPaginate on Ruby 3.2/3.3
Changes:
- Replace all instances of `class Fixnum` with `class Integer`
- Add comment explaining the Ruby 2.4+ change
- All tests now pass on Ruby 3.1, 3.2, and 3.3
Testing:
- Ruby 3.2.7: All Kaminari and WillPaginate tests pass
- Ruby 3.3.8: All Kaminari and WillPaginate tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6384719 commit 03b03c7
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
259 | | - | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
266 | | - | |
| 267 | + | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| |||
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
280 | | - | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
0 commit comments