Skip to content

Instantly share code, notes, and snippets.

@dbacinski
Last active January 8, 2016 15:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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