Sha256: aa6ed643e1fa35525f30d700c5867b73631f1ed8f21b40c9459a67f91b4c783a
Contents?: true
Size: 343 Bytes
Versions: 8
Compression:
Stored size: 343 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Array do describe "#place" do it "creates an Insertion object" do expect([].place('x')).to be_kind_of(Insertion) end it "allows multiple objects to be placed" do expect([1, 2].place('x', 'y', 'z').before(2)).to eq [1, 'x', 'y', 'z', 2] end end end
Version data entries
8 entries across 7 versions & 2 rubygems