-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Ruby 3.4.1 locally and test against it on CI #2138
Conversation
cb02b79
to
3365d41
Compare
`benchmark` gem will be removed as a default gem in Ruby 3.5.0 and requiring it without depending causes warnings
Ruby 3.4 contains a single quote instead of a backtick in the stack trace. We need to accept both since we still test with older Rubies
@@ -11,7 +11,7 @@ def before_suite(suite) | |||
|
|||
def record(test) | |||
# Trim leading "test_dddd_" and replace it with "it " | |||
test.name.gsub!(/^test_\d{4}_/, "it ") | |||
test.name = test.name.gsub(/^test_\d{4}_/, "it ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings will be frozen by default which means we can't modify the string test.name
points to without a deprecation warning.
@@ -5,6 +5,8 @@ | |||
|
|||
module Tapioca | |||
class ConfigTest < SpecWithProject | |||
include Tapioca::Helpers::Test::Template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for ruby_version
tapioca/tests/dsl_spec/project/sorbet/tapioca/extensions/test\.rb:2:in\s['`]<top\s\(required\)>':\s | ||
Raising\sfrom\stest\sextension\s\(RuntimeError\) | ||
}x | ||
assert_stderr_includes_pattern(result, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only difference in these regexes is that now we can observe both a single quote or backtick based on Ruby version.
Motivation
#2137
Implementation
Best reviewed commit by commit
Tests