From 1c5464aa7e2de72b51c96d148a3fe3ecfda7932e Mon Sep 17 00:00:00 2001 From: Nick Sutterer Date: Fri, 15 Nov 2024 12:42:19 +0100 Subject: [PATCH] don't use `Operation.trace` anymore. --- test/docs/contract_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/docs/contract_test.rb b/test/docs/contract_test.rb index 77ca987..6b2baf7 100644 --- a/test/docs/contract_test.rb +++ b/test/docs/contract_test.rb @@ -55,8 +55,10 @@ class MyContract < Reform::Form end it "shows 2-level tracing" do - result = Create.trace( params: { length: "A" } ) - result.wtf.gsub(/0x\w+/, "").must_equal %{DocsContractOverviewTest::Create + stack, _ = Trailblazer::Developer::Trace.(Create, [params: {length: "A"}] ) + output = Trailblazer::Developer::Trace::Present.(stack) + + output.gsub(/0x\w+/, "").must_equal %{DocsContractOverviewTest::Create |-- Start.default |-- model.build |-- contract.build