Skip to content

Commit

Permalink
In Testing#assert_process, only compare output semantics and not th…
Browse files Browse the repository at this point in the history
…e `inspect`s.
  • Loading branch information
apotonick committed Nov 14, 2023
1 parent 8539d43 commit 5f081e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/trailblazer/activity/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ def assert_call_for(signal, ctx, terminus: :success, seq: "[]", **ctx_variables)
def assert_process_for(process, *args)
semantics, circuit = args[0..-2], args[-1]

inspects = semantics.collect { |semantic| %(#<struct Trailblazer::Activity::Output signal=#<Trailblazer::Activity::End semantic=#{semantic.inspect}>, semantic=#{semantic.inspect}>) }

assert_equal %([#{inspects.join(", ")}]), process.to_h[:outputs].inspect
assert_equal semantics.sort, process.to_h[:outputs].collect { |output| output[:semantic] }.sort

assert_circuit(process, circuit)

Expand Down

0 comments on commit 5f081e8

Please sign in to comment.