From 6a588d54b8bd51405fd005fd07f0628c6fe8593d Mon Sep 17 00:00:00 2001 From: Nick Sutterer Date: Wed, 9 Aug 2023 11:19:23 +0200 Subject: [PATCH] releasing 0.16.1. --- lib/trailblazer/activity/testing.rb | 8 ++++++-- lib/trailblazer/activity/version.rb | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/trailblazer/activity/testing.rb b/lib/trailblazer/activity/testing.rb index 755f160..301d922 100644 --- a/lib/trailblazer/activity/testing.rb +++ b/lib/trailblazer/activity/testing.rb @@ -52,20 +52,24 @@ def assert_call(activity, terminus: :success, seq: "[]", expected_ctx_variables: signal, (ctx, _) = activity.([{seq: [], **ctx_variables}, _flow_options = {}]) # simply call the activity with the input you want to assert. assert_call_for(signal, ctx, terminus: terminus, seq: seq, **expected_ctx_variables, **ctx_variables) + + return signal, [ctx, flow_options] end # Use {TaskWrap.invoke} to call the activity. - def assert_invoke(activity, terminus: :success, seq: "[]", circuit_options: {}, expected_ctx_variables: {}, **ctx_variables) + def assert_invoke(activity, terminus: :success, seq: "[]", circuit_options: {}, expected_ctx_variables: {}, flow_options: {}, **ctx_variables) signal, (ctx, _flow_options) = Activity::TaskWrap.invoke( activity, [ {seq: [], **ctx_variables}, - {} # flow_options + flow_options ], **circuit_options ) assert_call_for(signal, ctx, terminus: terminus, seq: seq, **ctx_variables, **expected_ctx_variables) # DISCUSS: ordering of variables? + + return signal, [ctx, _flow_options] end def assert_call_for(signal, ctx, terminus: :success, seq: "[]", **ctx_variables) diff --git a/lib/trailblazer/activity/version.rb b/lib/trailblazer/activity/version.rb index 1c5a6eb..7071431 100644 --- a/lib/trailblazer/activity/version.rb +++ b/lib/trailblazer/activity/version.rb @@ -1,7 +1,7 @@ module Trailblazer module Version module Activity - VERSION = "0.16.0" + VERSION = "0.16.1" end end end