Sha256: dfcdb955462a0fdd4cc892c2c7c6ed16beaa4b7ae28c852ccef7bbc810c2de27

Contents?: true

Size: 949 Bytes

Versions: 75

Compression:

Stored size: 949 Bytes

Contents

require 'test_helper'

module Vedeu

  module Editor

    describe Insert do

      let(:described)  { Vedeu::Editor::Insert }
      let(:instance)   { described.new(collection, entity, index, size) }
      let(:collection) {}
      let(:entity)     {}
      let(:index)      {}
      let(:size)       {}

      describe '#initialize' do
        it { instance.must_be_instance_of(described) }
        it { instance.instance_variable_get('@collection').must_equal(collection) }
        it { instance.instance_variable_get('@entity').must_equal(entity) }
        it { instance.instance_variable_get('@index').must_equal(index) }
        it { instance.instance_variable_get('@size').must_equal(size) }
      end

      describe '.into' do
        subject { described.into(collection, entity, index, size) }
      end

      describe '#insert' do
        it { instance.must_respond_to(:insert) }
      end

    end # Insert

  end # Editor

end # Vedeu

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
vedeu-0.6.36 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.35 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.34 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.33 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.32 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.31 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.30 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.29 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.28 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.27 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.26 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.25 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.24 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.23 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.22 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.21 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.20 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.19 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.18 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.17 test/lib/vedeu/editor/insert_test.rb