Sha256: fffffa07eab93b8a1e069d97e183a52012c20e1cdfd71bc008ddc315c2d13211

Contents?: true

Size: 1.06 KB

Versions: 4

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 {
      configuration.stubs(:drb?).returns(false)
      Terminal.stubs(:open).returns([''])

      Vedeu.stubs(:trigger)
    }

    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

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.5.6 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.5 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.4 test/lib/vedeu/runtime/application_test.rb
vedeu-0.5.3 test/lib/vedeu/runtime/application_test.rb