mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@f8a2d54
This commit is contained in:
parent
ed377cc9aa
commit
809f0b8a13
76 changed files with 2451 additions and 224 deletions
|
@ -46,4 +46,10 @@ describe "Range#last" do
|
|||
it "raises a TypeError when passed a String" do
|
||||
-> { (2..3).last("1") }.should raise_error(TypeError)
|
||||
end
|
||||
|
||||
ruby_version_is "2.6" do
|
||||
it "raises a RangeError when called on an endless range" do
|
||||
-> { eval("(1..)").last }.should raise_error(RangeError)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue