Skip to content

Commit

Permalink
fixup! Add spec for error handling in HTTP_DATE parser
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Nov 26, 2024
1 parent f6f230e commit 08b6b45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/std/http/http_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ describe HTTP do
end

it "handles errors" do
expect_raises(Time::Format::Error, %(Invalid date format at 3: "Thu>>")) do
HTTP.parse_time("Thu")
end
HTTP.parse_time("Thu").should be_nil
end
end

Expand Down

0 comments on commit 08b6b45

Please sign in to comment.