Sha256: d34588b414606903aa9a10722841a18a99e1194288e6bf6297a0554f3687befb

Contents?: true

Size: 756 Bytes

Versions: 11

Compression:

Stored size: 756 Bytes

Contents

require 'test_helper'

module Vedeu

	describe Plugin do

    let(:described) { Vedeu::Plugin }
    let(:instance)  { described.new(_name, _gem) }
    let(:_name)     {}
    let(:_gem)      {}

    describe '#initialize' do
      it { instance.must_be_instance_of(described) }
      it { instance.instance_variable_get('@name').must_equal(_name) }
      it { instance.instance_variable_get('@gem').must_equal(_gem) }
      it {
        instance.instance_variable_get('@gem_name').
          must_equal("vedeu-#{_name}")
      }
      it { instance.instance_variable_get('@enabled').must_equal(false) }
    end

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

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

	end # Plugin

end # Vedeu

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vedeu-0.5.6 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.5.5 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.5.4 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.5.3 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.5.2 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.5.1 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.5.0 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.4.65 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.4.64 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.4.63 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.4.62 test/lib/vedeu/plugins/plugin_test.rb