Skip to content

Instantly share code, notes, and snippets.

@dbacinski
Last active January 8, 2016 15:50
Show Gist options
  • Save dbacinski/3ed6797d9449297bc392 to your computer and use it in GitHub Desktop.
Save dbacinski/3ed6797d9449297bc392 to your computer and use it in GitHub Desktop.
Spock + Espresso + Dagger2 + Runtime Permissions + RxJava
Spock + Espresso + Dagger2 + Runtime Permissions + RxJava
Test:
https://github.com/dbacinski/meteopl-unofficial/blob/master/app/src/androidTest/groovy/pl/dariuszbacinski/meteo/location/LocationSaveSpec.groovy#L25
Test Stubs Setup:
https://github.com/dbacinski/meteopl-unofficial/blob/master/app/src/androidTest/groovy/pl/dariuszbacinski/meteo/location/LocationSetup.groovy#L38
Stubbed Objects:
https://github.com/dbacinski/meteopl-unofficial/blob/master/app/src/main/java/pl/dariuszbacinski/meteo/location/model/CoarseLocation.java#L27
Dagger2 local component provider:
https://github.com/dbacinski/meteopl-unofficial/blob/master/app/src/main/java/pl/dariuszbacinski/meteo/location/view/LocationFragment.java#L216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment