Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address `Passing only keyword arguments to Struct#initialize will beh…
…ave differently from Ruby 3.2.` This commit addresses this warnings. ```ruby $ ruby -v ruby 3.1.6p260 (2024-05-29 revision a777087be6) [x86_64-linux] $ bin/test test/template/template_test.rb:335 Running 46 tests in a single process (parallelization threshold is 50) Run options: --seed 57841 /home/yahonda/src/github.com/rails/rails/actionview/test/template/template_test.rb:335: warning: Passing only keyword arguments to Struct#initialize will behave differently from Ruby 3.2. Please use a Hash literal like .new({k: v}) instead of .new(k: v). E Error: TestERBTemplate#test_template_translate_location: ActiveSupport::RaiseWarnings::WarningError: /home/yahonda/src/github.com/rails/rails/actionview/test/template/template_test.rb:335: warning: Passing only keyword arguments to Struct#initialize will behave differently from Ruby 3.2. Please use a Hash literal like .new({k: v}) instead of .new(k: v). /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/testing/strict_warnings.rb:38:in `warn' test/template/template_test.rb:335:in `initialize' test/template/template_test.rb:335:in `new' test/template/template_test.rb:335:in `test_template_translate_location' bin/test test/template/template_test.rb:330 Finished in 0.049434s, 20.2292 runs/s, 0.0000 assertions/s. 1 runs, 0 assertions, 0 failures, 1 errors, 0 skips $ ``` Follow up rails@f0afd24
- Loading branch information