Check status field value after patch (#22)
authorJae-Won Chung <jwnchung@umich.edu>
Wed, 22 May 2024 09:00:51 +0000 (05:00 -0400)
committerGitHub <noreply@github.com>
Wed, 22 May 2024 09:00:51 +0000 (11:00 +0200)
exercises/07_threads/10_patch/tests/check.rs

index 466f412..c7d6513 100644 (file)
@@ -26,5 +26,6 @@ fn works() {
     client.update(patch).unwrap();
 
     let ticket = client.get(ticket_id).unwrap().unwrap();
-    assert_eq!(ticket_id, ticket.id);
+    assert_eq!(ticket.id, ticket_id);
+    assert_eq!(ticket.status, Status::InProgress);
 }