diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb index cba60ef0130838c3362f81c8e9630f9d8e0b4e6e..68bd5233bf3344ba4d92dd331d004dd3cfe3e715 100644 --- a/activesupport/test/core_ext/module_test.rb +++ b/activesupport/test/core_ext/module_test.rb @@ -399,7 +399,7 @@ def initialize(place) @place = place end - private *delegate(:street, :city, to: :@place) + private(*delegate(:street, :city, to: :@place)) end place = location.new(Somewhere.new("Such street", "Sad city")) @@ -417,7 +417,7 @@ def initialize(place) @place = place end - private *delegate(:street, :city, to: :@place, prefix: :the) + private(*delegate(:street, :city, to: :@place, prefix: :the)) end place = location.new(Somewhere.new("Such street", "Sad city"))