Sha256: 37b0ba310858af95cf2b93201753f36371418a49f1f9da72cc066f3ffaab29ca

Contents?: true

Size: 904 Bytes

Versions: 6

Compression:

Stored size: 904 Bytes

Contents

require 'test_helper'

module Vedeu

  module Runtime

    describe MainLoop do

      let(:described) { Vedeu::Runtime::MainLoop }

      describe '.start!' do
        before { Vedeu.stubs(:log) }

        subject { described.start! { } }
      end

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

        it do
          subject
          described.instance_variable_get('@loop').must_equal(false)
        end
      end

      describe '.safe_exit_point!' do
        subject { described.safe_exit_point! }

        context 'when the application has started' do
          context 'when the loop is running' do
            # @todo Add more tests.
            # it { skip }
          end

          context 'when the loop is not running' do
            # @todo Add more tests.
            # it { skip }
          end
        end
      end

    end # MainLoop

  end # Runtime

end # Vedeu

Version data entries

6 entries across 6 versions & 1 rubygems

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