Skip to content
代码片段 群组 项目
未验证 提交 9e467d81 编辑于 作者: Peter Leitzen's avatar Peter Leitzen 提交者: GitLab
浏览文件

Detect incompatible use of `Struct.new` in specs

This commit patches `Struct.new` in specs when `keyword_init` is missing
and a Hash passed.

Reason: Since Ruby 3.2 `Struct` supports kwargs by default so
`keyword_init: true` is no longer required.  We are running Ruby 3.2 in
MRs and Ruby 3.1 on master so occasionally master is broken due to this
incompatibility.

This slows down creation of Struct objects in specs by factor 3.
上级 c211c33d
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册