diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-18 14:59:51 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-18 14:59:51 +0000 |
commit | 4dd07beaf3b290368e46bbff4e0f9584dd04124c (patch) | |
tree | f92ba9934534e4da73db8d7488b547092d0f9d95 /test | |
parent | 3519006b268c9e9323669733f19b7b2036b747d7 (diff) | |
download | ruby-4dd07beaf3b290368e46bbff4e0f9584dd04124c.tar.gz |
* ruby/test_require.rb (loading_fifo): checking by defined? is meaningless about
notimplemented method. such methods are defined, but not respond_to?. this
fixes test failures introduced at r52172.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_require.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index b48de0e240..9123d5bc8f 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -708,7 +708,7 @@ class TestRequire < Test::Unit::TestCase end END } - end if defined?(File.mkfifo) + end if File.respond_to?(:mkfifo) def test_loading_fifo_threading_success Tempfile.create(%w'fifo .rb') {|f| @@ -731,7 +731,7 @@ class TestRequire < Test::Unit::TestCase load(path) INPUT } - end if defined?(File.mkfifo) + end if File.respond_to?(:mkfifo) def test_throw_while_loading Tempfile.create(%w'bug-11404 .rb') do |f| |