Sha256: 0751a40ff17fc7648865049cb54098a07c26d21baebed908fc3422ee291b4dd6

Contents?: true

Size: 907 Bytes

Versions: 15

Compression:

Stored size: 907 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Application do

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

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

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

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

      it { subject.must_be_instance_of(Array) }

      it { described.must_respond_to(:restart) }
    end

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

    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.4.13 test/lib/vedeu/application_test.rb
vedeu-0.4.12 test/lib/vedeu/application_test.rb
vedeu-0.4.11 test/lib/vedeu/application_test.rb
vedeu-0.4.10 test/lib/vedeu/application_test.rb
vedeu-0.4.9 test/lib/vedeu/application_test.rb
vedeu-0.4.8 test/lib/vedeu/application_test.rb
vedeu-0.4.7 test/lib/vedeu/application_test.rb
vedeu-0.4.6 test/lib/vedeu/application_test.rb
vedeu-0.4.5 test/lib/vedeu/application_test.rb
vedeu-0.4.4 test/lib/vedeu/application_test.rb
vedeu-0.4.3 test/lib/vedeu/application_test.rb
vedeu-0.4.2 test/lib/vedeu/application_test.rb
vedeu-0.4.1 test/lib/vedeu/application_test.rb
vedeu-0.4.0 test/lib/vedeu/application_test.rb
vedeu-0.3.5 test/lib/vedeu/application_test.rb