Sha256: 9535f2f5fa1bc38c29ce573b5f808da1f16cd78588c10130cb80a9c02b461721

Contents?: true

Size: 997 Bytes

Versions: 53

Compression:

Stored size: 997 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 {
          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

53 entries across 53 versions & 1 rubygems

Version Path
vedeu-0.6.71 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.70 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.69 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.68 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.67 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.66 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.65 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.64 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.63 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.62 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.61 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.60 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.59 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.58 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.57 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.56 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.54 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.53 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.52 test/lib/vedeu/runtime/bootstrap_test.rb
vedeu-0.6.51 test/lib/vedeu/runtime/bootstrap_test.rb