Sha256: ed9289a452aa12b47b8348f25dabfe6a773612be3044da19eba5c818761dd0ba

Contents?: true

Size: 651 Bytes

Versions: 3

Compression:

Stored size: 651 Bytes

Contents

require 'test_helper'

module Vedeu

  describe MainLoop do

    let(:described) { Vedeu::MainLoop }

    describe '.start!' do
      before do
      end

      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
      end

      context 'when the application has not started' do
        it { Vedeu.expects(:trigger); subject }
      end
    end

  end # MainLoop

end # Vedeu

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vedeu-0.4.21 test/lib/vedeu/main_loop_test.rb
vedeu-0.4.20 test/lib/vedeu/main_loop_test.rb
vedeu-0.4.19 test/lib/vedeu/main_loop_test.rb