aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-07-06 00:16:19 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-07-06 00:16:19 +0900
commit6bb115a6617b320b8ff13a4561ddf8d1a9b44f82 (patch)
tree5db3396533c1814866d03cc097909aedb65073a0 /activesupport
parent019238385cae6bc0454155c0c4bf23325d9a6204 (diff)
downloadrails-6bb115a6617b320b8ff13a4561ddf8d1a9b44f82.tar.gz
rails-6bb115a6617b320b8ff13a4561ddf8d1a9b44f82.tar.bz2
rails-6bb115a6617b320b8ff13a4561ddf8d1a9b44f82.zip
Fix warning: `*' interpreted as argument prefix
``` /Users/kamipo/src/github.com/rails/rails/activesupport/test/core_ext/module_test.rb:402: warning: `*' interpreted as argument prefix /Users/kamipo/src/github.com/rails/rails/activesupport/test/core_ext/module_test.rb:420: warning: `*' interpreted as argument prefix ```
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/module_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb
index cba60ef013..68bd5233bf 100644
--- a/activesupport/test/core_ext/module_test.rb
+++ b/activesupport/test/core_ext/module_test.rb
@@ -399,7 +399,7 @@ class ModuleTest < ActiveSupport::TestCase
@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 @@ class ModuleTest < ActiveSupport::TestCase
@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"))