How would you go about adding a junit rule to a sp...
# spek
j
How would you go about adding a junit rule to a spec? My SUT contains RxJava logic and in order to mock the scheduler I need to use a rule such as the following: https://github.com/ribot/android-boilerplate/blob/master/app/src/test/java/uk/co/ribot/androidboilerplate/util/RxSchedulersOverrideRule.java however when I go and try to add it it says it can’t be added to a local variable. due to this question https://github.com/ReactiveX/RxAndroid/issues/238 edit: still a valid question but I got around it by injecting my schedulers into my class and in my spec injecting a scheduler that always returns immediate