test/test_backend.rb in polyphony-0.58 vs test/test_backend.rb in polyphony-0.59
- old
+ new
@@ -349,14 +349,14 @@
assert_equal count, GC.count
ensure
GC.enable
end
- def test_idle_block
+ def test_idle_proc
counter = 0
- @backend.idle_block = proc { counter += 1 }
+ @backend.idle_proc = proc { counter += 1 }
3.times { snooze }
assert_equal 0, counter
sleep 0.01
@@ -366,10 +366,10 @@
assert_equal 2, counter
3.times { snooze }
assert_equal 2, counter
- @backend.idle_block = nil
+ @backend.idle_proc = nil
sleep 0.01
assert_equal 2, counter
end
end