From 0b3910c99854717282150bd4462c745b4008c7ae Mon Sep 17 00:00:00 2001 From: vlad Date: Thu, 28 Jul 2016 13:54:06 -0700 Subject: Removed monadic directives + Fixed timezones for textual time + Explicit Swagger host provision --- src/test/scala/com/drivergrp/core/TimeTest.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/test/scala/com/drivergrp/core') diff --git a/src/test/scala/com/drivergrp/core/TimeTest.scala b/src/test/scala/com/drivergrp/core/TimeTest.scala index ad390c8..e6cca45 100644 --- a/src/test/scala/com/drivergrp/core/TimeTest.scala +++ b/src/test/scala/com/drivergrp/core/TimeTest.scala @@ -1,5 +1,7 @@ package com.drivergrp.core +import java.util.TimeZone + import com.drivergrp.core.time.{Time, _} import org.scalatest.{FlatSpec, Matchers} @@ -44,8 +46,8 @@ class TimeTest extends FlatSpec with Matchers { it should "have correct textual representations" in { - textualDate(Time(1468937089834L)) should be("July 19, 2016") - textualTime(Time(1468937089834L)) should be("Jul 19, 2016 10:04:49 AM") + textualDate(TimeZone.getTimeZone("EDT"))(Time(1468937089834L)) should be("July 19, 2016") + textualTime(TimeZone.getTimeZone("PDT"))(Time(1468937089834L)) should be("Jul 19, 2016 02:04:49 PM") } "TimeRange" should "have duration defined as a difference of start and end times" in { -- cgit v1.2.3