Sha256: c02ec30f79f04335fd4ecf8604f501ef47d936936412ebbf9a05decf79239dc8
Contents?: true
Size: 380 Bytes
Versions: 52
Compression:
Stored size: 380 Bytes
Contents
describe :enum_for, :shared => true do it "is defined in Kernel" do Kernel.method_defined?(@method).should be_true end it "returns a new enumerator" do "abc".send(@method).should be_an_instance_of(enumerator_class) end it "defaults the first argument to :each" do enum = [1,2].send(@method) enum.map { |v| v }.should == [1,2].each { |v| v } end end
Version data entries
52 entries across 52 versions & 2 rubygems