Skip to content

Instantly share code, notes, and snippets.

@TheAdamBorek
Created February 26, 2017 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheAdamBorek/9a5dd19e2e0b0249bbe7178950c13ff9 to your computer and use it in GitHub Desktop.
Save TheAdamBorek/9a5dd19e2e0b0249bbe7178950c13ff9 to your computer and use it in GitHub Desktop.
final class ViewModelTests: XCTestCase {
private var subject: AvatarViewModel!
var imageHavingMock: ImageHavingStub!
override func setUp() {
super.setUp()
rx_disposeBag = DisposeBag()
imageHavingMock = ImageHavingStub()
subject = AvatarViewModel(imageReceiver: imageHavingMock)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment