summaryrefslogtreecommitdiff
path: root/spec/ruby/core/enumerator/first_spec.rb
blob: 458080bb311f0ad0042e00bccae934afcd276161 (plain)
1
2
3
4
5
6
7
require_relative '../../spec_helper'

describe "Enumerator#first" do
  it "returns arrays correctly when calling #first (2376)" do
    Enumerator.new {|y| y << [42] }.first.should == [42]
  end
end