diff options
| author | t-mangoe <m.takashi.xpair@gmail.com> | 2025-12-21 09:16:58 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-12-26 11:00:51 +0900 |
| commit | 44a17656842a567eb82c43024daaf9fcaff61e5d (patch) | |
| tree | 21a2fbc9f02074d9ec0d9a6d02402edfc8c95026 /test | |
| parent | f8d0960af260219ab7c10a797ac62ecad25b2974 (diff) | |
[ruby/timeout] add test case for string argument
https://github.com/ruby/timeout/commit/fef9d07f44
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_timeout.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_timeout.rb b/test/test_timeout.rb index fead81f571..b11fc92aea 100644 --- a/test/test_timeout.rb +++ b/test/test_timeout.rb @@ -54,6 +54,12 @@ class TestTimeout < Test::Unit::TestCase end end + def test_raise_for_string_argument + assert_raise(NoMethodError) do + Timeout.timeout("1") { sleep(0.01) } + end + end + def test_included c = Class.new do include Timeout |
