Sha256: e40adf909615d3c89017b0390b295ccf6e02b4450fe339124459123748b2daa4

Contents?: true

Size: 1.06 KB

Versions: 22

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([''])
    end

    describe '#initialize' do
      subject { instance }

      it { subject.must_be_instance_of(described) }
      it do
        subject.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

22 entries across 22 versions & 1 rubygems

Version Path
vedeu-0.4.41 test/lib/vedeu/application_test.rb
vedeu-0.4.40 test/lib/vedeu/application_test.rb
vedeu-0.4.39 test/lib/vedeu/application_test.rb
vedeu-0.4.38 test/lib/vedeu/application_test.rb
vedeu-0.4.37 test/lib/vedeu/application_test.rb
vedeu-0.4.36 test/lib/vedeu/application_test.rb
vedeu-0.4.35 test/lib/vedeu/application_test.rb
vedeu-0.4.34 test/lib/vedeu/application_test.rb
vedeu-0.4.33 test/lib/vedeu/application_test.rb
vedeu-0.4.32 test/lib/vedeu/application_test.rb
vedeu-0.4.31 test/lib/vedeu/application_test.rb
vedeu-0.4.30 test/lib/vedeu/application_test.rb
vedeu-0.4.29 test/lib/vedeu/application_test.rb
vedeu-0.4.28 test/lib/vedeu/application_test.rb
vedeu-0.4.27 test/lib/vedeu/application_test.rb
vedeu-0.4.26 test/lib/vedeu/application_test.rb
vedeu-0.4.25 test/lib/vedeu/application_test.rb
vedeu-0.4.24 test/lib/vedeu/application_test.rb
vedeu-0.4.23 test/lib/vedeu/application_test.rb
vedeu-0.4.22 test/lib/vedeu/application_test.rb