Releases: jonreid/ViewControllerPresentationSpy
Releases · jonreid/ViewControllerPresentationSpy
v4.1.1
v4.1.0
Version 4.1.0
23 Aug 2019
Added verify
methods to the Swift versions of each verifier.
- The
PresentationVerifier
method checks:- That the presented count is 1.
- The animated flag.
- The presenting view controller, if provided.
- The type of the presented view controller.
- Returns the view controller cast to the expected type (or
nil
if it didn't match).
- The
AlertVerifier
method checks:- That the presented count is 1.
- The title.
- The message.
- The animated flag.
- The preferred style (
.alert
or.actionSheet
). - The presenting view controller, if provided.
- The titles and styles of each action.
v4.0.0
Version 4.0.0
24 Jul 2019
MockUIAlertController is dead. Long live ViewControllerPresentationSpy!
- Added
PresentationVerifier
to capture any presented view controller. It's able to capture segues. - Rewrote alert verifier in Swift. You no longer need a bridging header.
- Simplified name of alert verifier to
AlertVerifier
(Swift) orQCOAlertVerifier
(Objective-C). - Use simpler naming for invoking button action, and made it a Swift throwing function. This changes the Objective-C implementation to return an NSError via an "in-out" parameter.
- Renamed test code completion handler to
testCompletion
. - The production code completion handler passed to
present(_:animated:completion:)
is no longer executed right away. Instead, it's captured incapturedCompletion
. That way tests can execute it after executing a button action. - Removed
actionTitles
and-styleForButtonWithTitle:
, deprecated in Version 3.1.0.