Commit 986cd98
test: add multi-type polymorphic-array spec
The existing array-of-sources test only exercises a single-type array
(`Link.where(source: [cat])`). The fix's value also covers multi-type
arrays (`Link.where(source: [cat, dog])`) — a broader branch of
`type_to_ids_mapping` where the result hash spans multiple keys.
Locks in coverage on both Rails 8.0 (backwards compat) and 8.1.
Suggested by code review.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c5f3319 commit 986cd98
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
| |||
0 commit comments