Commit 552f78da

552f78da6b09Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · +1 added

Description

test: pin file_dir_methods expected to Ruby 3.x trailing-dot behaviour

CI's Windows MinGW ruby is < 2.7 — File.extname("foo.") returns "" there, whereas Ruby >= 2.7 (and spinel's runtime) return ".". The test was comparing spinel against the runner's ruby, so it passed locally and failed on Windows. Pin the .expected file to the current CRuby behaviour so the result no longer depends on the runner's ruby version.

Co-Authored-By: Claude Opus 4.7 [email protected]

Details

Commit
552f78da6b09
Parent
807d5b344156

test/file_dir_methods.rb.expectedaddedView file

1+.rb
2+file.rb
3+/home/user
4+
5+.
6+.
7+/usr
8+true