Sha256: e3570535b12f11f7a906ed069040d7454c6070faa22dbca67f757b2d65e966f3

Contents?: true

Size: 969 Bytes

Versions: 10

Compression:

Stored size: 969 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::Configuration.stubs(:root).
            returns([:controller, :action, :args])
          Vedeu.stubs(:trigger)
          Vedeu::Launcher.stubs(:execute!)
        end

        subject { described.start(argv) }

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

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

    end # Bootstrap

  end # Runtime

end # Vedeu

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vedeu-0.6.17 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.16 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.15 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.14 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.13 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.12 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.11 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.10 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.9 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.8 test/lib/vedeu/runtime/bootstrap_test.rb