Sha256: b243fb377dc61c695db55520481ff0d10f72a4423c34ada5771de9dcd9e3b96c

Contents?: true

Size: 901 Bytes

Versions: 53

Compression:

Stored size: 901 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 {
          subject
          described.instance_variable_get('@loop').must_equal(false)
        }
      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

53 entries across 53 versions & 1 rubygems

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