diff options
author | Bogdan <bogdanvlviv@gmail.com> | 2018-12-17 10:25:55 +0200 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-17 17:25:55 +0900 |
commit | fdb27193087c23ea2e7a0e8f6f035c47f274dbf7 (patch) | |
tree | 8c085967f00043ae143ec9f39414501830240925 /activesupport/test | |
parent | ce48b5a366482d4b4c4c053e1e39e79d71987197 (diff) | |
download | rails-fdb27193087c23ea2e7a0e8f6f035c47f274dbf7.tar.gz rails-fdb27193087c23ea2e7a0e8f6f035c47f274dbf7.tar.bz2 rails-fdb27193087c23ea2e7a0e8f6f035c47f274dbf7.zip |
Extend documentation of `ActiveSupport::Notifications.subscribe` (#34721)
* Extend documentation of `ActiveSupport::Notifications.subscribe`
Add mention that a block with only one argument passed to the method
will yield an event object.
Related to #33451
* Emphasize that `SubscribeEventObjects` is a test class by adding suffix `Test`
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/notifications_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/notifications_test.rb b/activesupport/test/notifications_test.rb index 54fd4345fb..4e0aef2cc7 100644 --- a/activesupport/test/notifications_test.rb +++ b/activesupport/test/notifications_test.rb @@ -26,7 +26,7 @@ module Notifications end end - class SubscribeEventObjects < TestCase + class SubscribeEventObjectsTest < TestCase def test_subscribe_events events = [] @notifier.subscribe do |event| |