Sha256: 9b5a6063e95e3cb7fd513f37dd2e8a9ace0196a1d6d24abf06b1c64d5020e445

Contents?: true

Size: 1.06 KB

Versions: 15

Compression:

Stored size: 1.06 KB

Contents

require 'test_helper'

module Vedeu

  describe Application do

    let(:described)     { Vedeu::Application }
    let(:instance)      { described.new(configuration) }
    let(:configuration) { Vedeu.configuration }

    before do
      configuration.stubs(:drb?).returns(false)
      Terminal.stubs(:open).returns([''])

      Vedeu.stubs(:trigger)
    end

    describe '#initialize' do
      it { instance.must_be_instance_of(described) }
      it do
        instance.instance_variable_get('@configuration').
          must_equal(configuration)
      end
    end

    describe '.restart' do
      subject { described.restart(configuration) }

      it { subject.must_be_instance_of(Array) }
    end

    describe '.start' do
      subject { described.start(configuration) }

      it { subject.must_be_instance_of(Array) }
    end

    describe '.stop' do
      subject { described.stop }

      it { subject.must_equal(false) }
    end

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

      it { subject.must_be_instance_of(Array) }
    end

  end # Application

end # Vedeu

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.6.7 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.6 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.5 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.4 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.3 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.2 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.1 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.0 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.13 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.12 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.11 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.10 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.9 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.8 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.7 test/lib/vedeu/runtime/application_test.rb