diff --git a/droidux/src/test/groovy/info/izumin/android/droidux/DispatcherTest.groovy b/droidux/src/test/groovy/info/izumin/android/droidux/DispatcherTest.groovy index ff78565..85513b0 100644 --- a/droidux/src/test/groovy/info/izumin/android/droidux/DispatcherTest.groovy +++ b/droidux/src/test/groovy/info/izumin/android/droidux/DispatcherTest.groovy @@ -1,7 +1,7 @@ package info.izumin.android.droidux -import io.reactivex.Single -import spock.lang.Specification; +import io.reactivex.Flowable +import spock.lang.Specification /** * Created by izumin on 11/24/15. @@ -34,10 +34,10 @@ class DispatcherTest extends Specification { dispatcher.dispatch(action).subscribe() then: - 1 * middleware1.beforeDispatch(action) >> Single.just(action) + 1 * middleware1.beforeDispatch(action) >> Flowable.just(action) then: - 1 * middleware2.beforeDispatch(action) >> Single.just(action) + 1 * middleware2.beforeDispatch(action) >> Flowable.just(action) then: 1 * store1.dispatch(action) @@ -46,9 +46,9 @@ class DispatcherTest extends Specification { 1 * store2.dispatch(action) then: - 1 * middleware2.afterDispatch(action) >> Single.just(action) + 1 * middleware2.afterDispatch(action) >> Flowable.just(action) then: - 1 * middleware1.afterDispatch(action) >> Single.just(action) + 1 * middleware1.afterDispatch(action) >> Flowable.just(action) } }