Skip to content

Commit 4884bff

Browse files
committed
Yield payload in mock service
Replicates the ActiveSupport::Notifications behavior.
1 parent 508a553 commit 4884bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize
1717
end
1818

1919
def instrument(event, payload)
20-
result = yield
20+
result = yield(payload)
2121
@events << [event, payload, result]
2222
result
2323
end

0 commit comments

Comments
 (0)