We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e80f0c1 commit 04a07e0Copy full SHA for 04a07e0
core/time/new_spec.rb
@@ -556,10 +556,14 @@ def obj.to_int; 3; end
556
-> {
557
Time.new("2020-12-25 00 +09:00")
558
}.should raise_error(ArgumentError, /missing min part: 00 |can't parse:/)
559
+ end
560
- -> {
561
- Time.new("2020-12-25")
562
- }.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
563
+ -> {
564
+ Time.new("2020-12-25")
565
+ }.should raise_error(ArgumentError, /no time information|can't parse:/)
566
567
end
568
569
it "raises ArgumentError if subsecond is missing after dot" do
0 commit comments