Skip to content

Instantly share code, notes, and snippets.

@reinh
Created April 29, 2010 16:26
Show Gist options
  • Save reinh/383850 to your computer and use it in GitHub Desktop.
Save reinh/383850 to your computer and use it in GitHub Desktop.
require 'test/unit'
require 'timeout'
class ThreadTest < Test::Unit::TestCase
def test_raise
assert_raise Timeout::Error do
t = Thread.new { raise Timeout::Error }
t.join
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment