diff options
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r-- | test/ruby/test_thread.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index ab1b81a8fe..33d2daf266 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -64,14 +64,14 @@ class TestThread < Test::Unit::TestCase end def test_thread_variable? - refute Thread.new { Thread.current.thread_variable?("foo") }.join.value + Thread.new { assert_not_send([Thread.current, :thread_variable?, "foo"]) }.value t = Thread.new { Thread.current.thread_variable_set("foo", "bar") }.join - assert t.thread_variable?("foo") - assert t.thread_variable?(:foo) - refute t.thread_variable?(:bar) + assert_send([t, :thread_variable?, "foo"]) + assert_send([t, :thread_variable?, :foo]) + assert_not_send([t, :thread_variable?, :bar]) end def test_thread_variable_strings_and_symbols_are_the_same_key @@ -140,7 +140,7 @@ class TestThread < Test::Unit::TestCase end t1.kill t2.kill - assert_operator(c1, :>, c2, "[ruby-dev:33124]") # not guaranteed + assert_send([c1, :>, c2], "[ruby-dev:33124]") # not guaranteed end def test_new |