Sha256: f90500fc79c204fd2669d85bda10a92ea640025ef7eb9ea365886cd2bca6b042

Contents?: true

Size: 767 Bytes

Versions: 10

Compression:

Stored size: 767 Bytes

Contents

require 'test_helper'

module Vedeu

  describe MainLoop do

    let(:described) { Vedeu::MainLoop }

    describe '.start!' do
      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 # Vedeu

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vedeu-0.6.7 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.6.6 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.6.5 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.6.4 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.6.3 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.6.2 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.6.1 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.6.0 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.5.13 test/lib/vedeu/runtime/main_loop_test.rb
vedeu-0.5.12 test/lib/vedeu/runtime/main_loop_test.rb