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:
parent
cf8621a3e9
commit
912093d01e
1 changed files with 1 additions and 1 deletions
|
@ -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") {}
|
||||
|
|
Loading…
Reference in a new issue