task: add test

This commit is contained in:
0x1eef
2026-05-27 23:27:51 -03:00
parent ee82a7fcc6
commit 4bdde3a0a8
+7
View File
@@ -183,3 +183,10 @@ assert("Task.new with block doesn't execute immediately") do
# Block should not execute until scheduler runs
assert_false executed
end
assert("Task.run inside Task.run is a noop") do
assert_nothing_raised do
Task.new { Task.run }
Task.run
end
end