summaryrefslogtreecommitdiff
path: root/src/channel/routes/test/on_create.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-25 23:35:31 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-09-25 23:57:25 -0400
commitcce1ab45db0de5e912fa7eec8d8a2cfe9a314078 (patch)
treea5515c8487481cb5bf7082f8bd1431d76594c13a /src/channel/routes/test/on_create.rs
parentfa21a7a397ae1f829e6e9c8f4a4bd30acda4372a (diff)
Retire `fixtures::error::expected!`.
I had no idea `std` included a `matches!` macro, and I feel we're better off using it.
Diffstat (limited to 'src/channel/routes/test/on_create.rs')
-rw-r--r--src/channel/routes/test/on_create.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/channel/routes/test/on_create.rs b/src/channel/routes/test/on_create.rs
index df23deb..23885c0 100644
--- a/src/channel/routes/test/on_create.rs
+++ b/src/channel/routes/test/on_create.rs
@@ -50,9 +50,8 @@ async fn duplicate_name() {
// Verify the structure of the response
- fixtures::error::expected!(
+ assert!(matches!(
error,
- app::CreateError::DuplicateName(name),
- assert_eq!(request.name, name),
- );
+ app::CreateError::DuplicateName(name) if request.name == name
+ ));
}