1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Suppress warning ambiguous first argument

Suppress warning (warning: ambiguous first argument; put
parentheses or a space even after `/' operator)
This commit is contained in:
yui-knk 2015-12-20 22:15:56 +09:00
parent cf8621a3e9
commit 912093d01e

View file

@ -509,7 +509,7 @@ module CacheStoreBehavior
def test_cache_miss_instrumentation
@events = []
ActiveSupport::Notifications.subscribe /^cache_(.*)\.active_support$/ do |*args|
ActiveSupport::Notifications.subscribe(/^cache_(.*)\.active_support$/) do |*args|
@events << ActiveSupport::Notifications::Event.new(*args)
end
assert_not @cache.fetch("bad_key") {}