test/async_run.rb in polling-0.1.2 vs test/async_run.rb in polling-0.1.3
- old
+ new
@@ -1,11 +1,8 @@
require File.expand_path(File.dirname(__FILE__)) + "/helper.rb"
class Polling::Test < Test::Unit::TestCase
def test_async
- Polling.async_run 5, true do
- puts "exec sleep 2"
- sleep 2
- puts Time.now
- end
+ Polling.setting debug: true
+ Polling.async_run 5
end
end