Sha256: 1fe23dd6cccef9b4599884a121be77297758426c0b7ae90ef1827c958595b6b8

Contents?: true

Size: 1000 Bytes

Versions: 6

Compression:

Stored size: 1000 Bytes

Contents

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::Configuration.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

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.8.0 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.7.4 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.7.3 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.7.2 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.7.1 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.7.0 test/lib/vedeu/runtime/bootstrap_test.rb