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:
parent
1e4e0935bc
commit
575d4d1348
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue