Skip to content

Commit

Permalink
Enable pending specs (#10093)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Dec 19, 2020
1 parent 12bf665 commit 1db7d5f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions spec/std/time/time_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1db7d5f

Please sign in to comment.