Sha256: 17e1ac0dcd3e6fd6405de708e3ac260136260495c3e56a922576e212746665b2

Contents?: true

Size: 403 Bytes

Versions: 7

Compression:

Stored size: 403 Bytes

Contents

# encoding: utf-8

require 'minitest_helper'
require 'say_when/poller/concurrent_poller'

describe SayWhen::Poller::ConcurrentPoller do

  let (:poller) { SayWhen::Poller::ConcurrentPoller.new(100) }

  it 'should instantiate the poller' do
    poller.tick_length.must_equal 100
  end

  it 'should start the poller running, and can stop it' do
    poller.start
    sleep(0.2)
    poller.stop
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
say_when-2.2.1 test/say_when/poller/concurrent_poller_test.rb
say_when-2.2.0 test/say_when/poller/concurrent_poller_test.rb
say_when-2.1.1 test/say_when/poller/concurrent_poller_test.rb
say_when-2.1.0 test/say_when/poller/concurrent_poller_test.rb
say_when-2.0.2 test/say_when/poller/concurrent_poller_test.rb
say_when-2.0.1 test/say_when/poller/concurrent_poller_test.rb
say_when-2.0.0 test/say_when/poller/concurrent_poller_test.rb