Sha256: 876cb46ded75e1872a56057a1e79488eff41def192b7380537fee251ce1a36dc

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 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
    expect(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

1 entries across 1 versions & 1 rubygems

Version Path
say_when-2.2.2 test/say_when/poller/celluloid_poller_test.rb