Commit e6017cd
authored
Fix stale Hash::_Key expectations from upstream RBS core drift (#1224)
* Fix stale Hash::_Key expectations from upstream RBS core drift
RBS core's `Hash#[]` now types its key parameter as the `_Key` duck-type
interface rather than the generic `K`, so instantiating `Hash{Symbol =>
untyped}` no longer substitutes `Symbol` for the key param type. The two
specs added for #1042 asserted the old `Symbol` value; update them to the
now-correct `::Hash::_Key`.
* Make Hash::_Key expectation conditional on RBS version
CI's rspec matrix pins RBS versions 3.10.0 through 4.0.2, all of which
predate the _Key duck-type interface change (introduced in RBS 4.1.0) - only
my local environment's latest RBS picked up the new behavior. Make the
expectation depend on the installed RBS::VERSION so both old and new RBS
are covered correctly, following the existing pattern used elsewhere in this
file for RBS-version-gated behavior.1 parent f75f562 commit e6017cd
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
190 | 199 | | |
191 | | - | |
| 200 | + | |
192 | 201 | | |
193 | 202 | | |
194 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
145 | 154 | | |
146 | | - | |
| 155 | + | |
147 | 156 | | |
148 | 157 | | |
149 | 158 | | |
| |||
0 commit comments