Sha256: 0d252bb5a3f29d1355b203f67039e49578578056ee47d9a53a81effc660d1e23

Contents?: true

Size: 1001 Bytes

Versions: 15

Compression:

Stored size: 1001 Bytes

Contents

require 'test_helper'

module Vedeu

	describe Plugins do

    let(:described) { Vedeu::Plugins }
    let(:instance)  { described.new }

    describe '#initialize' do
      it { instance.must_be_instance_of(described) }
    end

    describe '#load' do
      subject { instance.load }

      it { subject.must_be_instance_of(Array) }
    end

    describe '#register' do
      let(:_name) {}
      let(:plugin) { false }

      subject { instance.register(_name, plugin) }

      # @todo Add more tests.
      # it { skip }
    end

    describe '#find' do
      subject { instance.find }

      it { subject.must_be_instance_of(Array) }
    end

    describe '#names' do
      subject { instance.names }

      it { subject.must_be_instance_of(Hash) }

      context 'when no plugins are registered' do
        it { subject.must_equal({}) }
      end

      context 'when plugins are registered' do
        # @todo Add more tests.
        # it { skip }
      end
    end

	end # Plugins

end # Vedeu

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.5.10 test/lib/vedeu/plugins_test.rb
vedeu-0.5.9 test/lib/vedeu/plugins_test.rb
vedeu-0.5.8 test/lib/vedeu/plugins_test.rb
vedeu-0.5.7 test/lib/vedeu/plugins_test.rb
vedeu-0.5.6 test/lib/vedeu/plugins_test.rb
vedeu-0.5.5 test/lib/vedeu/plugins_test.rb
vedeu-0.5.4 test/lib/vedeu/plugins_test.rb
vedeu-0.5.3 test/lib/vedeu/plugins_test.rb
vedeu-0.5.2 test/lib/vedeu/plugins_test.rb
vedeu-0.5.1 test/lib/vedeu/plugins_test.rb
vedeu-0.5.0 test/lib/vedeu/plugins_test.rb
vedeu-0.4.65 test/lib/vedeu/plugins_test.rb
vedeu-0.4.64 test/lib/vedeu/plugins_test.rb
vedeu-0.4.63 test/lib/vedeu/plugins_test.rb
vedeu-0.4.62 test/lib/vedeu/plugins_test.rb