Sha256: c55599a341018241836a41477c63536d044e96577d1d8761629ce7ea6effc387

Contents?: true

Size: 1023 Bytes

Versions: 30

Compression:

Stored size: 1023 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

module YourApp

  class SomeController
  end # SomeController

end # YourApp

module Vedeu

  module Runtime

    describe Bootstrap do

      let(:described)   { Vedeu::Runtime::Bootstrap }
      let(:instance)    { described.new(argv) }
      let(:argv)        { [] }

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

      describe '.start' do
        before do
          Vedeu.stubs(:log)
          Vedeu.config.stubs(:root).
            returns([:controller, :action, :args])
          Vedeu.stubs(:trigger)
          Vedeu::Launcher.stubs(:execute!)
        end

        subject { described.start(argv) }

        it do
          Vedeu::Launcher.expects(:execute!)
          subject
        end
      end

      describe '#start' do
        it { instance.must_respond_to(:start) }
      end

    end # Bootstrap

  end # Runtime

end # Vedeu

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
vedeu-0.8.12 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.8.10 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.8.9 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.8.8 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.8.7 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.8.6 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.8.5 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.8.4 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.8.3 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.8.2 test/lib/vedeu/runtime/bootstrap_test.rb