Skip to content

Commit

Permalink
don't use Operation.trace anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Nov 15, 2024
1 parent e4d15e0 commit 1c5464a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/docs/contract_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c5464a

Please sign in to comment.