aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-12-20 22:15:56 +0900
committeryui-knk <spiketeika@gmail.com>2015-12-20 22:15:56 +0900
commit912093d01e8abb8381c9b707f20c04eda987495d (patch)
treee48ba8d1c1d02ed56128707187304d251334261b /activesupport
parentcf8621a3e9676f0c62d84dc42797e75bc6ab1a1d (diff)
downloadrails-912093d01e8abb8381c9b707f20c04eda987495d.tar.gz
rails-912093d01e8abb8381c9b707f20c04eda987495d.tar.bz2
rails-912093d01e8abb8381c9b707f20c04eda987495d.zip
Suppress warning ambiguous first argument
Suppress warning (warning: ambiguous first argument; put parentheses or a space even after `/' operator)
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/caching_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb
index 465b943173..2701dc2fe9 100644
--- a/activesupport/test/caching_test.rb
+++ b/activesupport/test/caching_test.rb
@@ -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") {}