Sha256: 1711e9ac8732698ca523d6e9ad6c41ed396661032591f2bf1fc79284962b1382
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
# encoding: utf-8 require 'minitest_helper' require 'say_when/poller/simple_poller' describe SayWhen::Poller::SimplePoller do let (:poller) { SayWhen::Poller::SimplePoller.new } it 'should instantiate the poller' do expect(poller).wont_be_nil end it 'can check if poller is running' do expect(poller).wont_be :running? end it 'should start the poller running, and can stop it' do expect(poller).wont_be :running Thread.start{ poller.start } sleep(0.2) expect(poller).must_be :running poller.stop expect(poller).wont_be :running end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
say_when-2.2.2 | test/say_when/poller/simple_poller_test.rb |