Commit 3f77e720 authored by Matt Todd's avatar Matt Todd

Output is already in the payload

parent fdc00ca1
......@@ -113,8 +113,8 @@ module HTML
def perform_filter(filter, doc, context, result)
payload = default_payload :filter => filter.name,
:doc => doc, :context => context, :result => result
instrument "call_filter.html_pipeline", payload do |payload|
payload[:output] = filter.call(doc, context, result)
instrument "call_filter.html_pipeline", payload do
filter.call(doc, context, result)
end
end
......
......@@ -26,7 +26,7 @@ class HTML::PipelineTest < Test::Unit::TestCase
assert_equal TestFilter.name, payload[:filter]
assert_equal @pipeline.class.name, payload[:pipeline]
assert_equal body, payload[:doc]
assert_equal body.reverse, payload[:output]
assert_equal body.reverse, payload[:result][:output]
end
def test_pipeline_instrumentation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment