-
Benoit Daloze authored
* Without the change the new test fails like this: Failure: ActiveModel::TypeTest#test_registering_a_new_type [test/cases/type_test.rb:21]: Expected: #<struct args={}> Actual: #<struct args=nil> * (*args, **kwargs)-delegation is not correct on Ruby 2.7 unless the target always accepts keyword arguments (not the case for `Struct.new(:args).new`). See https://eregon.me/blog/2021/02/13/correct-delegation-in-ruby-2-27-3.html
Benoit Daloze authored* Without the change the new test fails like this: Failure: ActiveModel::TypeTest#test_registering_a_new_type [test/cases/type_test.rb:21]: Expected: #<struct args={}> Actual: #<struct args=nil> * (*args, **kwargs)-delegation is not correct on Ruby 2.7 unless the target always accepts keyword arguments (not the case for `Struct.new(:args).new`). See https://eregon.me/blog/2021/02/13/correct-delegation-in-ruby-2-27-3.html
Loading