Skip to content

Commit eb725fa

Browse files
committed
wrap_test is green.
1 parent 73bee4e commit eb725fa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/docs/wrap_test.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
#@ yield returns a circuit-interface result set, we can return it to the flow
44
#:my_transaction
5+
# app/concepts/macro/my_transaction.rb
56
class MyTransaction
67
def self.call(ctx, flow_options, circuit_options, &block)
7-
ctx, flow_options, signal = yield(ctx, flow_options, circuit_options) # calls the wrapped steps
8-
8+
#:yield-and-return
9+
# Run the wrapped steps.
10+
ctx, flow_options, signal = yield(ctx, flow_options, circuit_options)
911
# maybe do something more?
1012

1113
return ctx, flow_options, signal
14+
#:yield-and-return end
1215
end
1316
end
1417
#:my_transaction end

0 commit comments

Comments
 (0)