From d43a7b4e1b964223d6d0f6df2c64de9759e4eca5 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Thu, 29 Oct 2026 15:45:32 -0600 Subject: [PATCH] test: a preview's confirm step repeats the arguments, so id and tag previews differ there (P5) dispose_asset_takes_the_tag_and_the_tag_stays_reserved compares the preview a disposal gives by asset id and by tag and says they show the same, apart from the digest, which names the arguments as sent. The envelope's confirm step repeats the arguments as sent too, so next_steps is set aside beside the digest; everything the preview shows is still compared. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp --- crates/ledger-cli/tests/spec_assets.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ledger-cli/tests/spec_assets.rs b/crates/ledger-cli/tests/spec_assets.rs index ff0eb28..1355b22 100644 --- a/crates/ledger-cli/tests/spec_assets.rs +++ b/crates/ledger-cli/tests/spec_assets.rs @@ -606,10 +606,12 @@ fn dispose_asset_takes_the_tag_and_the_tag_stays_reserved() { let p1 = m.ok("books.dispose_asset", by_id.clone()); let p2 = m.ok("books.dispose_asset", by_tag.clone()); // (The digest names the arguments as sent, so it differs by id and - // by tag; everything it shows is the same.) + // by tag, and so does the confirm step the envelope offers, which + // repeats them; everything the preview shows is the same.) let (mut p1, mut p2) = (p1, p2); for p in [&mut p1, &mut p2] { p.as_object_mut().unwrap().remove("preview"); + p.as_object_mut().unwrap().remove("next_steps"); } assert_eq!(p1, p2, "same preview by id and by tag"); let mut both = by_id.clone();