Suppress warning ambiguous first argument
Suppress warning (warning: ambiguous first argument; put parentheses or a space even after `/' operator)
This commit is contained in:
parent
cf8621a3e9
commit
912093d01e
@ -509,7 +509,7 @@ def test_cache_hit_instrumentation
|
||||
|
||||
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") {}
|
||||
|
Loading…
Reference in New Issue
Block a user