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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
This commit is contained in:
1 parent
ad1afb478d
commit
d43a7b4e1b
1 file changed
+3
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user