Sha256: 6773e32c70875e22c552d07754522e6b7126826c80d7708a34de392b0ff8a5d8

Contents?: true

Size: 740 Bytes

Versions: 2

Compression:

Stored size: 740 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
      # it { skip }
    end

	end # Plugin

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.61 test/lib/vedeu/plugins/plugin_test.rb
vedeu-0.4.60 test/lib/vedeu/plugins/plugin_test.rb