Fix tests

pull/2783/head
Alex Baker 2 years ago
parent efdf343869
commit 157668e35a

@ -11,7 +11,8 @@ import org.tasks.injection.InjectingTestCase
import org.tasks.injection.ProductionModule import org.tasks.injection.ProductionModule
import org.tasks.time.DateTime import org.tasks.time.DateTime
import java.text.ParseException import java.text.ParseException
import java.util.* import java.util.Locale
import java.util.TimeZone
import javax.inject.Inject import javax.inject.Inject
@UninstallModules(ProductionModule::class) @UninstallModules(ProductionModule::class)
@ -84,7 +85,7 @@ class RepeatRuleToStringTest : InjectingTestCase() {
Freeze.freezeAt(DateTime(2021, 1, 4)) { Freeze.freezeAt(DateTime(2021, 1, 4)) {
withTZ(BERLIN) { withTZ(BERLIN) {
assertEquals( assertEquals(
"Repeats daily until February 23", "Repeats daily, ends on February 23",
toString("RRULE:FREQ=DAILY;UNTIL=20210223;INTERVAL=1") toString("RRULE:FREQ=DAILY;UNTIL=20210223;INTERVAL=1")
) )
} }
@ -96,7 +97,7 @@ class RepeatRuleToStringTest : InjectingTestCase() {
Freeze.freezeAt(DateTime(2021, 1, 4)) { Freeze.freezeAt(DateTime(2021, 1, 4)) {
withTZ(LONDON) { withTZ(LONDON) {
assertEquals( assertEquals(
"Repeats daily until February 23", "Repeats daily, ends on February 23",
toString("RRULE:FREQ=DAILY;UNTIL=20210223;INTERVAL=1") toString("RRULE:FREQ=DAILY;UNTIL=20210223;INTERVAL=1")
) )
} }
@ -108,7 +109,7 @@ class RepeatRuleToStringTest : InjectingTestCase() {
Freeze.freezeAt(DateTime(2021, 1, 4)) { Freeze.freezeAt(DateTime(2021, 1, 4)) {
withTZ(NEW_YORK) { withTZ(NEW_YORK) {
assertEquals( assertEquals(
"Repeats daily until February 23", "Repeats daily, ends on February 23",
toString("RRULE:FREQ=DAILY;UNTIL=20210223;INTERVAL=1") toString("RRULE:FREQ=DAILY;UNTIL=20210223;INTERVAL=1")
) )
} }

Loading…
Cancel
Save