Skip to content

Commit

Permalink
Add version guard for spec failing on 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Nov 6, 2024
1 parent e80f0c1 commit 04a07e0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/time/new_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -556,10 +556,14 @@ def obj.to_int; 3; end
-> {
Time.new("2020-12-25 00 +09:00")
}.should raise_error(ArgumentError, /missing min part: 00 |can't parse:/)
end

-> {
Time.new("2020-12-25")
}.should raise_error(ArgumentError, /no time information|can't parse:/)
ruby_version_is "3.2.3" do
it "raises ArgumentError if the time part is missing" do
-> {
Time.new("2020-12-25")
}.should raise_error(ArgumentError, /no time information|can't parse:/)
end
end

it "raises ArgumentError if subsecond is missing after dot" do
Expand Down

0 comments on commit 04a07e0

Please sign in to comment.