Skip to content

Comments

Fix CI: use File.expand_path for test requires in -e context#3

Merged
jonathan-kosgei merged 1 commit intomainfrom
claude/ruby-ipdata-sdk-EtZpA
Feb 23, 2026
Merged

Fix CI: use File.expand_path for test requires in -e context#3
jonathan-kosgei merged 1 commit intomainfrom
claude/ruby-ipdata-sdk-EtZpA

Conversation

@jonathan-kosgei
Copy link
Contributor

Dir glob returns relative paths like "test/test_cache.rb". Plain require looks for these relative to load paths (-Itest), resulting in "test/test/test_cache.rb". Using File.expand_path converts to absolute paths which resolve correctly.

https://claude.ai/code/session_01CvCNpdSjh1STBdmS9n5DN9

Dir glob returns relative paths like "test/test_cache.rb". Plain
require looks for these relative to load paths (-Itest), resulting
in "test/test/test_cache.rb". Using File.expand_path converts to
absolute paths which resolve correctly.

https://claude.ai/code/session_01CvCNpdSjh1STBdmS9n5DN9
@jonathan-kosgei jonathan-kosgei merged commit b8cc7fa into main Feb 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants