Sha256: 458bf5294aeb1d29b724a6dc81c5bece54040201c7ff3a7a2eccf76a54ed0e54

Contents?: true

Size: 1.18 KB

Versions: 10

Compression:

Stored size: 1.18 KB

Contents

require 'test_helper'

module Vedeu

  module Runtime

    describe Application do

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

      before do
        configuration.stubs(:drb?).returns(false)
        Vedeu::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 # Runtime

end # Vedeu

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vedeu-0.6.29 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.28 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.27 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.26 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.25 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.24 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.23 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.22 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.21 test/lib/vedeu/runtime/application_test.rb
vedeu-0.6.20 test/lib/vedeu/runtime/application_test.rb