Add an option to refresh all tracking metadata

This commit is contained in:
inorichi
2017-05-17 13:36:42 +02:00
parent 097d4fe34c
commit 67678cd49e
8 changed files with 93 additions and 65 deletions

View File

@@ -96,7 +96,8 @@ class LibraryUpdateServiceTest {
`when`(source.fetchChapterList(favManga[2])).thenReturn(Observable.just(chapters3))
val intent = Intent()
service.updateChapterList(service.getMangaToUpdate(intent)).subscribe()
val target = LibraryUpdateService.Target.CHAPTERS
service.updateChapterList(service.getMangaToUpdate(intent, target)).subscribe()
// There are 3 network attempts and 2 insertions (1 request failed)
assertThat(service.db.getChapters(favManga[0]).executeAsBlocking()).hasSize(2)