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.8.0 test/lib/vedeu/editor/insert_test.rb
vedeu-0.7.4 test/lib/vedeu/editor/insert_test.rb
vedeu-0.7.3 test/lib/vedeu/editor/insert_test.rb
vedeu-0.7.2 test/lib/vedeu/editor/insert_test.rb
vedeu-0.7.1 test/lib/vedeu/editor/insert_test.rb
vedeu-0.7.0 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.71 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.70 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.69 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.68 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.67 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.66 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.65 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.64 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.63 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.62 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.61 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.60 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.59 test/lib/vedeu/editor/insert_test.rb
vedeu-0.6.58 test/lib/vedeu/editor/insert_test.rb