@@ -12,7 +12,7 @@ import Quick
1212import ReactiveSwift
1313
1414private extension SignalProtocol {
15- typealias Pipe = ( signal : Signal < Value , Error > , observer : Observer < Value , Error > )
15+ typealias Pipe = ( output : Signal < Value , Error > , input : Observer < Value , Error > )
1616}
1717
1818private typealias Pipe = Signal < SignalProducer < Int , TestError > , TestError > . Pipe
@@ -26,7 +26,7 @@ class FlattenSpec: QuickSpec {
2626
2727 beforeEach {
2828 pipe = Signal . pipe ( )
29- disposable = pipe. signal
29+ disposable = pipe. output
3030 . flatten ( flattenStrategy)
3131 . observe { _ in }
3232 }
@@ -40,25 +40,25 @@ class FlattenSpec: QuickSpec {
4040
4141 beforeEach {
4242 disposed = false
43- pipe. observer . send ( value: SignalProducer< Int, TestError> { _, disposable in
43+ pipe. input . send ( value: SignalProducer< Int, TestError> { _, disposable in
4444 disposable += ActionDisposable {
4545 disposed = true
4646 }
4747 } )
4848 }
4949
5050 it ( " should dispose inner signals when outer signal interrupted " ) {
51- pipe. observer . sendInterrupted ( )
51+ pipe. input . sendInterrupted ( )
5252 expect ( disposed) == true
5353 }
5454
5555 it ( " should dispose inner signals when outer signal failed " ) {
56- pipe. observer . send ( error: . default)
56+ pipe. input . send ( error: . default)
5757 expect ( disposed) == true
5858 }
5959
6060 it ( " should not dispose inner signals when outer signal completed " ) {
61- pipe. observer . sendCompleted ( )
61+ pipe. input . sendCompleted ( )
6262 expect ( disposed) == false
6363 }
6464 }
0 commit comments