Sha256: 249b2bd6ad96d398f456c658aae9362e9bcec577bdb1e7085f3471b8908486ab
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
require 'test_helper' module Vedeu describe MainLoop do let(:described) { Vedeu::MainLoop } describe '.start!' do before do # subject.expects(:while).yields do # String.expects(:new).returns("samantha") # end end subject { described.start! { } } # it { subject; described.instance_variable_get('@started').must_equal(true) } # it { subject; described.instance_variable_get('@loop').must_equal(true) } 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 we wish to continue' do end context 'when we wish to stop' do # it { proc { subject }.must_raise(VedeuInterrupt) } end end end # MainLoop end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.3.5 | test/lib/vedeu/main_loop_test.rb |