Skip to content

Commit

Permalink
Disambiguate Nimble Predicate usage (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcbride authored Jun 6, 2023
1 parent 976f19e commit 5c7674d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MobiusCore/Test/TestingErrorHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Quick
/// for example in `beforeEach`, that will take precedence and this predicate won’t work.
///
/// - Parameter capture: An optional block which is invoked with the message, file and line of the error invocation.
public func raiseError<Out>(capture: ((String, String, UInt) -> Void)? = nil) -> Predicate<Out> {
public func raiseError<Out>(capture: ((String, String, UInt) -> Void)? = nil) -> Nimble.Predicate<Out> {
// This is a simplified version of Nimble’s throwAssertion() that piggybacks on Objective-C exceptions.
return Predicate { actualExpression in
let message = ExpectationMessage.expectedTo("throw an assertion")
Expand Down

0 comments on commit 5c7674d

Please sign in to comment.