Namespace
Methods
- S
- T
Attributes
| [R] | instrumenter | |
| [R] | notifier | |
| [R] | payload |
Instance Public methods
setup()
Link
test_finish()
Link
test_instrument()
Link
test_instrument_yields_the_payload_for_further_modification()
Link
# File activesupport/test/notifications/instrumenter_test.rb, line 37 def test_instrument_yields_the_payload_for_further_modification assert_equal 2, instrumenter.instrument("awesome") { |p| p[:result] = 1 + 1 } assert_equal 1, notifier.finishes.size name, _, payload = notifier.finishes.first assert_equal "awesome", name assert_equal Hash[:result => 2], payload end