I'm trying to write some unit tests using spek framework, but keep running into RuntimeException (Method threw 'java.lang.RuntimeException exception. Stub!) when trying to access Looper (Looper.getMyLooper()) in code.
I'm using the TestScheduler provided by Rx as the Scheduler and tried @RunWith(AndroidJUnit4::class) as well as @RunWith(RobolectricTestRunner::class)
Any pointers?