Skip to content

Commit

Permalink
Merge pull request Quick#588 from Quick/containElementSatisfyingMatch…
Browse files Browse the repository at this point in the history
…er-postfixmessage

[7.x ][containElementSatisfyingMatcher] Using `postfixMessage` would be preferable instead of overwriting `to`
  • Loading branch information
ikesyo authored Aug 16, 2018
2 parents 08c91c8 + 94bd196 commit c6fd742
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Nimble/Matchers/ContainElementSatisfying.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ public func containElementSatisfying<S: Sequence, T>(_ predicate: @escaping ((T)
}

failureMessage.actualValue = nil
failureMessage.postfixMessage = ""
failureMessage.to = "to find object in collection that satisfies predicate"
failureMessage.postfixMessage = "find object in collection that satisfies predicate"
return false
}
}
Expand Down

0 comments on commit c6fd742

Please sign in to comment.