Created
February 26, 2017 13:37
-
-
Save TheAdamBorek/ac33eadf45fc954a300a18df75db6d83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func test_receiveImage_onButtonClick() { | |
var resultImage: UIImage! | |
subject.image.drive(onNext: { image in | |
resultImage = image | |
}).disposed(by: rx_disposeBag) | |
buttonTap.onNext(()) | |
XCTAssertEqual(resultImage, imageHavingMock.expectedImage) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment