From 5f081e826b68154b73d7e9fd210d6579218b7414 Mon Sep 17 00:00:00 2001 From: Nick Sutterer Date: Tue, 14 Nov 2023 16:18:14 +0100 Subject: [PATCH] In `Testing#assert_process`, only compare output semantics and not the `inspect`s. --- lib/trailblazer/activity/testing.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/trailblazer/activity/testing.rb b/lib/trailblazer/activity/testing.rb index d44e10f..ee5f46e 100644 --- a/lib/trailblazer/activity/testing.rb +++ b/lib/trailblazer/activity/testing.rb @@ -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| %(#, 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)