Sha256: 3e821ce059ed3f3682e5213ce783bf449e43f7dc1c8fe4607f92a35313307d03

Contents?: true

Size: 746 Bytes

Versions: 9

Compression:

Stored size: 746 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

module Vedeu

  module Editor

    class CollectionTestClass

      include Enumerable
      include Vedeu::Editor::Collection

      attr_accessor :collection

      def initialize(collection)
        @collection = collection
      end

    end # CollectionTestClass

    describe Collection do

      let(:described)  { Vedeu::Editor::Collection }
      let(:instance)   { Vedeu::Editor::CollectionTestClass.new(collection) }
      let(:collection) { 'Some text...'.chars }

      describe '#by_index' do
        let(:index) { 0 }

        subject { instance.by_index(index) }

        it { subject.must_be_instance_of(String) }
      end

    end # Collection

  end # Editor

end # Vedeu

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vedeu-0.8.9 test/lib/vedeu/editor/collection_test.rb
vedeu-0.8.8 test/lib/vedeu/editor/collection_test.rb
vedeu-0.8.7 test/lib/vedeu/editor/collection_test.rb
vedeu-0.8.6 test/lib/vedeu/editor/collection_test.rb
vedeu-0.8.5 test/lib/vedeu/editor/collection_test.rb
vedeu-0.8.4 test/lib/vedeu/editor/collection_test.rb
vedeu-0.8.3 test/lib/vedeu/editor/collection_test.rb
vedeu-0.8.2 test/lib/vedeu/editor/collection_test.rb
vedeu-0.8.1 test/lib/vedeu/editor/collection_test.rb