teasy 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teasy/floating_time.rb +1 -1
- data/lib/teasy/version.rb +1 -1
- data/test/teasy/floating_time_test.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d59065b11afcc1227925a905fa90a6c7ff6ae679
|
4
|
+
data.tar.gz: a82354d6291ac4d3975b7da8102b7b006a4449a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a079254d50d2442675af904e1bfbfd4fb7351c8f0a3092a2d023a3650fd81a59c47312adf3659c5cafbd9bc53c5c7d32e6978f663d5eb501b066e28273081224
|
7
|
+
data.tar.gz: f91e54b6c1d0efd65f14e823ea8bc09daf482314045c1916a1fe35ea1822c3dc334b85852ab710820b34d4c231661ad863f70d1ab4b1dcf3cbf9af0ac51254b6
|
data/lib/teasy/floating_time.rb
CHANGED
data/lib/teasy/version.rb
CHANGED
@@ -25,8 +25,8 @@ class FloatingTimeTest < Minitest::Test
|
|
25
25
|
|
26
26
|
def test_in_time_zone
|
27
27
|
time = Teasy::FloatingTime.new(2014, 1, 1, 12)
|
28
|
+
assert_equal Time.utc(2014, 1, 1, 12), time.in_time_zone
|
28
29
|
assert_equal Time.utc(2014, 1, 1, 11), time.in_time_zone('Europe/Berlin')
|
29
|
-
assert_equal Time.utc(2014, 1, 1, 12), time.in_time_zone('Europe/London')
|
30
30
|
assert_equal Time.utc(2014, 1, 1, 6, 30), time.in_time_zone('Asia/Calcutta')
|
31
31
|
assert_equal Time.utc(2014, 1, 1, 17), time.in_time_zone('America/New_York')
|
32
32
|
assert_raises(TZInfo::AmbiguousTime) do
|