From 9f8a4cf811af449962de3cda5370e5bb45edf526 Mon Sep 17 00:00:00 2001 From: Rachel Brindle Date: Wed, 11 Sep 2024 22:10:14 -0700 Subject: [PATCH] Fix a broken test helper --- Sources/NimbleSharedTestHelpers/utils.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Sources/NimbleSharedTestHelpers/utils.swift b/Sources/NimbleSharedTestHelpers/utils.swift index 65908144..1d94b91a 100644 --- a/Sources/NimbleSharedTestHelpers/utils.swift +++ b/Sources/NimbleSharedTestHelpers/utils.swift @@ -261,7 +261,14 @@ public class NimbleHelper: NSObject { } @objc public class func expectFailureMessageRegex(_ regex: NSString, block: () -> Void, file: FileString, line: UInt) { - fail("erp!") + failsWithErrorRegex( + String(describing: regex), + fileID: "Unknown/\(file)", + filePath: file, + line: line, + column: 0, + closure: block + ) } } #endif