Sha256: 8dc066d1652c6ee0d1af3cdb4378066a016fb88d57553ece4b1b00320c904d13
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
require 'lib/poller.rb' describe Poller do before do continue = true @continuer = mock('continuer') @continuer.should_receive(:continue?).any_number_of_times { continue } @waiter = mock('waiter') @waiter.should_receive(:wait).ordered @action = mock('actioner') @action.should_receive(:run).ordered { continue = false } end it "should wait and call action while contunuer returns true" do p = Poller.new(@waiter, @continuer, @action) p.start() end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
karl-loris-0.0.6 | spec/poller_spec.rb |
karl-loris-0.0.7 | spec/poller_spec.rb |
karl-loris-0.0.9 | spec/poller_spec.rb |