-
Notifications
You must be signed in to change notification settings - Fork 526
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
CI against Ruby 3.4 #939
CI against Ruby 3.4 #939
Conversation
spec/draper/decorator_spec.rb
Outdated
@@ -451,7 +451,7 @@ module Draper | |||
it "includes the context" do | |||
decorator = Decorator.new(double, context: {foo: "bar"}) | |||
|
|||
expect(decorator.inspect).to include '@context={:foo=>"bar"}' | |||
expect(decorator.inspect).to include "#{@context={:foo=>"bar"}}" |
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.
Ruby 3.4 has changed the format of Hash.inspect
. So I wrapped this with #{}
to work both Ruby 3.4 and older.
Ref: https://bugs.ruby-lang.org/issues/20433
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.
I didn't test my suggestion, but hope it to be valid.
It seems that Ruby 2.4 is failing with another issue. I will check. |
Maybe the time has come to let it fail? |
In Ruby 3.4, the result of Hash.inspect has changed. So I updated the specs to wrap hash with `#{}` to work both 3.4 and older. Ref: https://bugs.ruby-lang.org/issues/20433
Co-authored-by: Alexander Senko <[email protected]>
5412d06
to
4bd6472
Compare
Description
Ruby 3.4 has been released. I would like to add Ruby 3.4 to CI to confirm whether
draper
works well with it.