Project

General

Profile

Bug #18237 » Remove-unnecessary-checks-in-Range-each-spec-Bug-18237.patch

ruby/spec patch - jwmittag (Jörg W Mittag), 10/03/2021 12:24 PM

View differences:

core/range/each_spec.rb
enum.to_a.should == [1, 2, 3]
end
it "raises a TypeError if the first element is a Time object" do
t = Time.now
-> { (t..t+1).each { |i| i } }.should raise_error(TypeError)
ruby_version_is ""..."3.1" do
it "raises a TypeError if the first element is a Time object" do
t = Time.now
-> { (t..t+1).each { |i| i } }.should raise_error(TypeError)
end
end
it "passes each Symbol element by using #succ" do
(2-2/2)