@@ -121,7 +121,7 @@ class ActionTests: QuickSpec {
121121 var receivedInput : String ?
122122 let subject = Action < String , Void > ( workFactory: { ( input) in
123123 receivedInput = input
124- return just ( )
124+ return . just( )
125125 } )
126126
127127 subject. execute ( testInput)
@@ -215,7 +215,7 @@ class ActionTests: QuickSpec {
215215 var invocations = 0
216216 let subject = Action < Void , Void > ( workFactory: { _ in
217217 invocations++
218- return empty ( )
218+ return . empty( )
219219 } )
220220
221221 subject. execute ( )
@@ -234,7 +234,7 @@ class ActionTests: QuickSpec {
234234 it ( " is externally disabled while executing " ) {
235235 var observer : AnyObserver < Void > !
236236 let subject = Action < Void , Void > ( workFactory: { _ in
237- return create { ( obsv) -> Disposable in
237+ return Observable . create { ( obsv) -> Disposable in
238238 observer = obsv
239239 return NopDisposable . instance
240240 }
@@ -254,17 +254,17 @@ class ActionTests: QuickSpec {
254254
255255 describe ( " disabled " ) {
256256 it ( " sends false on enabled observable " ) {
257- let subject = Action < Void , Void > ( enabledIf: just ( false ) , workFactory: { _ in
258- return empty ( )
257+ let subject = Action < Void , Void > ( enabledIf: . just( false ) , workFactory: { _ in
258+ return . empty( )
259259 } )
260260
261261 let enabled = try ! subject. enabled. toBlocking ( ) . first ( )
262262 expect ( enabled) == false
263263 }
264264
265265 it ( " errors observable sends error as next event when execute() is called " ) {
266- let subject = Action < Void , Void > ( enabledIf: just ( false ) , workFactory: { _ in
267- return empty ( )
266+ let subject = Action < Void , Void > ( enabledIf: . just( false ) , workFactory: { _ in
267+ return . empty( )
268268 } )
269269
270270 var receivedError : ActionError ?
@@ -282,8 +282,8 @@ class ActionTests: QuickSpec {
282282 }
283283
284284 it ( " errors observable sends correct error types when execute() is called " ) {
285- let subject = Action < Void , Void > ( enabledIf: just ( false ) , workFactory: { _ in
286- return empty ( )
285+ let subject = Action < Void , Void > ( enabledIf: . just( false ) , workFactory: { _ in
286+ return . empty( )
287287 } )
288288
289289 var receivedError : ActionError ?
@@ -311,9 +311,9 @@ class ActionTests: QuickSpec {
311311 it ( " doesn't invoke the work factory " ) {
312312 var invoked = false
313313
314- let subject = Action < Void , Void > ( enabledIf: just ( false ) , workFactory: { _ in
314+ let subject = Action < Void , Void > ( enabledIf: . just( false ) , workFactory: { _ in
315315 invoked = true
316- return empty ( )
316+ return . empty( )
317317 } )
318318
319319 subject. execute ( )
@@ -330,7 +330,7 @@ extension String: ErrorType { }
330330let TestError = " Test Error "
331331
332332func errorObservable( ) -> Observable < Void > {
333- return create ( { ( observer) -> Disposable in
333+ return . create( { ( observer) -> Disposable in
334334 observer. onError ( TestError)
335335 return NopDisposable . instance
336336 } )
@@ -344,7 +344,7 @@ func errorSubject() -> Action<Void, Void> {
344344
345345func emptySubject( ) -> Action < Void , Void > {
346346 return Action ( workFactory: { input in
347- return empty ( )
347+ return . empty( )
348348 } )
349349}
350350
0 commit comments