Sha256: 4017e600c4de0f063045be3ca907107b35b59f6d2b72dd79c4809af7b035b42c

Contents?: true

Size: 935 Bytes

Versions: 31

Compression:

Stored size: 935 Bytes

Contents

# frozen_string_literal: true

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

31 entries across 31 versions & 1 rubygems

Version Path
vedeu-0.8.32 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.31 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.30 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.29 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.28 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.27 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.26 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.25 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.24 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.23 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.22 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.21 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.20 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.19 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.18 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.17 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.16 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.15 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.14 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.8.13 test/lib/vedeu/runtime/main_loop_test.rb