зеркало из https://github.com/github/ruby.git
[Bug #20797] Yet another test
This commit is contained in:
Родитель
6c7209cd37
Коммит
d58ec11945
|
@ -634,6 +634,12 @@ describe "Time.new with a timezone argument" do
|
||||||
-> {
|
-> {
|
||||||
Time.new("2020-12-25 00:56:17 +23:61")
|
Time.new("2020-12-25 00:56:17 +23:61")
|
||||||
}.should raise_error(ArgumentError, /utc_offset/)
|
}.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
|
end
|
||||||
|
|
||||||
it "raises ArgumentError if string has not ascii-compatible encoding" do
|
it "raises ArgumentError if string has not ascii-compatible encoding" do
|
||||||
|
|
Загрузка…
Ссылка в новой задаче