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

subscribe block doesn't take keyword arguments

This commit is contained in:
Akira Matsuda 2019-09-03 17:15:21 +09:00
parent 1e4e0935bc
commit 575d4d1348

View file

@ -175,8 +175,8 @@ class DeprecationTest < ActiveSupport::TestCase
begin
events = []
ActiveSupport::Notifications.subscribe("deprecation.my_gem_custom") { |_, **args|
events << args
ActiveSupport::Notifications.subscribe("deprecation.my_gem_custom") { |*args|
events << args.extract_options!
}
assert_nil behavior.call("Some error!", ["call stack!"], "horizon", "MyGem::Custom")