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.16 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.15 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.14 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.13 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.12 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.11 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.10 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.9 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.8 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.7 test/lib/vedeu/input/editor/insert_test.rb
vedeu-0.6.6 test/lib/vedeu/input/editor/insert_test.rb
vedeu-0.6.5 test/lib/vedeu/input/editor/insert_test.rb
vedeu-0.6.4 test/lib/vedeu/input/editor/insert_test.rb
vedeu-0.6.3 test/lib/vedeu/input/editor/insert_test.rb
vedeu-0.6.2 test/lib/vedeu/input/editor/insert_test.rb