From 1db7d5f3b593aa874fd99a0bf7cbad00da1deef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Sat, 19 Dec 2020 19:25:14 +0100 Subject: [PATCH] Enable pending specs (#10093) --- spec/std/time/time_spec.cr | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/spec/std/time/time_spec.cr b/spec/std/time/time_spec.cr index 4208332f9278..0f29b7bc8a5a 100644 --- a/spec/std/time/time_spec.cr +++ b/spec/std/time/time_spec.cr @@ -353,10 +353,9 @@ describe Time do end end - pending "out of range max (shift days)" do - # this will be fixed with raise on overflow + it "out of range max (shift days)" do time = Time.utc(2002, 2, 25, 15, 25, 13) - expect_raises ArgumentError do + expect_raises OverflowError do time.shift days: 10000000 end end @@ -368,10 +367,9 @@ describe Time do end end - pending "out of range min (shift days)" do - # this will be fixed with raise on overflow + it "out of range min (shift days)" do time = Time.utc(2002, 2, 25, 15, 25, 13) - expect_raises ArgumentError do + expect_raises OverflowError do time.shift days: -10000000 end end