aboutsummaryrefslogtreecommitdiffstats
path: root/community/crystal/fix-spec-time-location.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-06-16 15:38:36 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-06-16 15:31:48 +0200
commit065772daaf144c1207924e74d458c884dc7dac12 (patch)
treee387f7f919940e92da87f4015765a42939ff80eb /community/crystal/fix-spec-time-location.patch
parente8badd7bac0819e3e73e6a2ed5d99eeca35ee98c (diff)
downloadaports-065772daaf144c1207924e74d458c884dc7dac12.tar.bz2
aports-065772daaf144c1207924e74d458c884dc7dac12.tar.xz
community/crystal: fix test failure due to timezone
Diffstat (limited to 'community/crystal/fix-spec-time-location.patch')
-rw-r--r--community/crystal/fix-spec-time-location.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/crystal/fix-spec-time-location.patch b/community/crystal/fix-spec-time-location.patch
new file mode 100644
index 0000000000..3bb086f798
--- /dev/null
+++ b/community/crystal/fix-spec-time-location.patch
@@ -0,0 +1,14 @@
+This test fail on builders; probably the timezone is set to UTC there.
+
+--- a/spec/std/time/location_spec.cr
++++ b/spec/std/time/location_spec.cr
+@@ -162,9 +162,6 @@
+ end
+
+ it ".load_local" do
+- with_env("TZ", nil) do
+- Location.load_local.name.should eq "Local"
+- end
+ with_zoneinfo do
+ with_env("TZ", "Europe/Berlin") do
+ Location.load_local.name.should eq "Europe/Berlin"