Skip to content

Commit

Permalink
releasing 0.16.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Aug 9, 2023
1 parent b434bd5 commit 6a588d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/trailblazer/activity/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/trailblazer/activity/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Trailblazer
module Version
module Activity
VERSION = "0.16.0"
VERSION = "0.16.1"
end
end
end

0 comments on commit 6a588d5

Please sign in to comment.