Skip to content

Fix tests for ruby 4+ by replacing set.rb with erb.rb in tests after Set moved to C#125

Merged
SamSaffron merged 1 commit intoSamSaffron:masterfrom
rwstauner:stdlib-4
Mar 22, 2026
Merged

Fix tests for ruby 4+ by replacing set.rb with erb.rb in tests after Set moved to C#125
SamSaffron merged 1 commit intoSamSaffron:masterfrom
rwstauner:stdlib-4

Conversation

@rwstauner
Copy link
Copy Markdown
Contributor

Ruby moved Set to a C-based implementation, so set.rb no longer exists as a stdlib file. This broke tests that expected to see set.rb in profiler output.

  • Changed longhorn test fixture to require 'erb' instead of 'set'
  • Added STDLIB_FILE constant in test_helper.rb so the stdlib filename is defined in one place, making future changes easier
  • Updated all test assertions to reference STDLIB_FILE

Ruby moved Set to a C-based implementation, so set.rb no longer exists
as a stdlib file. This broke tests that expected to see set.rb in
profiler output.

- Changed longhorn test fixture to require 'erb' instead of 'set'
- Added STDLIB_FILE constant in test_helper.rb so the stdlib filename
  is defined in one place, making future changes easier
- Updated all test assertions to reference STDLIB_FILE
@SamSaffron
Copy link
Copy Markdown
Owner

Oh thanks so much! 🤗

@SamSaffron SamSaffron merged commit da9107d into SamSaffron:master Mar 22, 2026
5 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