Bug #18237 » Remove-unnecessary-checks-in-Range-each-spec-Bug-18237.patch
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
|
- « Previous
- 1
- 2
- Next »