Sha256: a1e1ed342d59132631b455b2ca23808337cf35fbaaaaa4d6b9a8670756653269

Contents?: true

Size: 398 Bytes

Versions: 7

Compression:

Stored size: 398 Bytes

Contents

# encoding: utf-8
require 'minitest_helper'
require 'say_when/poller/celluloid_poller'

describe SayWhen::Poller::CelluloidPoller do
  let (:poller) { SayWhen::Poller::CelluloidPoller.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/celluloid_poller_test.rb
say_when-2.2.0 test/say_when/poller/celluloid_poller_test.rb
say_when-2.1.1 test/say_when/poller/celluloid_poller_test.rb
say_when-2.1.0 test/say_when/poller/celluloid_poller_test.rb
say_when-2.0.2 test/say_when/poller/celluloid_poller_test.rb
say_when-2.0.1 test/say_when/poller/celluloid_poller_test.rb
say_when-2.0.0 test/say_when/poller/celluloid_poller_test.rb