lib/trailblazer/activity/testing.rb in trailblazer-activity-0.10.1 vs lib/trailblazer/activity/testing.rb in trailblazer-activity-0.11.0

- old
+ new

@@ -59,11 +59,11 @@ Failure = Activity::End(:failure) Success = Activity::End(:success) end def Cct(activity) - cct = Trailblazer::Developer::Render::Circuit.(activity) + Trailblazer::Developer::Render::Circuit.(activity) end # TODO: Remove this once all it's references are removed def implementing Implementing @@ -130,20 +130,20 @@ 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}>} } - process.to_h[:outputs].inspect.must_equal %{[#{inspects.join(", ")}]} + assert_equal %{[#{inspects.join(", ")}]}, process.to_h[:outputs].inspect assert_circuit(process, circuit) process end def assert_circuit(schema, circuit) cct = Cct(schema) cct = cct.gsub("#<Trailblazer::Activity::TaskBuilder::Task user_proc=", "<*") - cct.must_equal %{#{circuit}} + assert_equal %{#{circuit}}, cct end end end end