Sha256: 272cb5b5d6f31b57e4c1802ae419d5673276fc18c9a6a9a7bd1660858306a4db
Contents?: true
Size: 549 Bytes
Versions: 7
Compression:
Stored size: 549 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 poller.wont_be_nil end it 'can check if poller is running' do poller.wont_be :running? end it 'should start the poller running, and can stop it' do poller.wont_be :running Thread.start{ poller.start } sleep(0.2) poller.must_be :running poller.stop poller.wont_be :running end end
Version data entries
7 entries across 7 versions & 1 rubygems