Skip to content

Commit

Permalink
Fix DispatcherTest
Browse files Browse the repository at this point in the history
  • Loading branch information
wakwak3125 committed Jan 2, 2018
1 parent c3b9b69 commit fcf9d4a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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)
Expand All @@ -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)
}
}

0 comments on commit fcf9d4a

Please sign in to comment.