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

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/spec/core_ext/array_spec.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/spec/core_ext/array_spec.rb
yard-0.9.5 spec/core_ext/array_spec.rb
yard-0.9.4 spec/core_ext/array_spec.rb
yard-0.9.3 spec/core_ext/array_spec.rb
yard-0.9.2 spec/core_ext/array_spec.rb
yard-0.9.1 spec/core_ext/array_spec.rb
yard-0.9.0 spec/core_ext/array_spec.rb