diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-10-15 14:52:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-10-15 14:52:17 +0900 |
commit | d58ec11945a1f8bd26bb6d61a7e2c2f983350930 (patch) | |
tree | 6d28c88af0f5b987cbef30a5a46e1608c17590b7 | |
parent | 6c7209cd3788ceec01e504d99057f9d3b396be84 (diff) |
[Bug #20797] Yet another test
-rw-r--r-- | spec/ruby/core/time/new_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/ruby/core/time/new_spec.rb b/spec/ruby/core/time/new_spec.rb index 9b3e4f90f3..fa5b5c56d6 100644 --- a/spec/ruby/core/time/new_spec.rb +++ b/spec/ruby/core/time/new_spec.rb @@ -634,6 +634,12 @@ describe "Time.new with a timezone argument" do -> { Time.new("2020-12-25 00:56:17 +23:61") }.should raise_error(ArgumentError, /utc_offset/) + + ruby_bug '#20797', ''...'3.4' do + -> { + Time.new("2020-12-25 00:56:17 +00:23:61") + }.should raise_error(ArgumentError, /utc_offset/) + end end it "raises ArgumentError if string has not ascii-compatible encoding" do |