Sha256: 7c00b7ee59a58f8dc64debbad09d2949a6c5c7b2fe3e1163cbe890ed2356463a
Contents?: true
Size: 327 Bytes
Versions: 21
Compression:
Stored size: 327 Bytes
Contents
# frozen_string_literal: true RSpec.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
21 entries across 20 versions & 4 rubygems