Permalink
Browse files

updates to support ruby 1.9.2 preview

  • Loading branch information...
1 parent d57a4e6 commit 061a0c042679d79433b8f5c681916d40f40cf6d7 Todd A. Fisher committed Jul 23, 2009
View
2 tests/bug_curb_easy_blocks_ruby_threads.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), 'helper')
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
require 'webrick'
class ::WEBrick::HTTPServer ; def access_log(config, req, res) ; end ; end
class ::WEBrick::BasicLog ; def log(level, data) ; end ; end
View
2 tests/bug_instance_post_differs_from_class_post.rb
@@ -23,7 +23,7 @@
# instance httppost. This bug is intermittent, but results in an
# exception from the first post when it occurs.
#
-require File.join(File.dirname(__FILE__), 'helper')
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
class BugTestInstancePostDiffersFromClassPost < Test::Unit::TestCase
def test_bug
View
4 tests/bug_multi_segfault.rb
@@ -3,8 +3,8 @@
# irb: multi = Curl::Multi.new
# irb: exit
# <main>:47140: [BUG] Bus Error
-$:.unshift File.join(File.dirname(__FILE__),'..','ext')
-$:.unshift File.join(File.dirname(__FILE__),'..','lib')
+$:.unshift File.expand_path(File.join(File.dirname(__FILE__),'..','ext'))
+$:.unshift File.expand_path(File.join(File.dirname(__FILE__),'..','lib'))
require 'curb'
multi = Curl::Multi.new
exit
View
4 tests/require_last_or_segfault_script.rb
@@ -21,8 +21,8 @@
# Aborted
# ------------------------------------------------------------------
#
-$:.unshift(File.join(File.dirname(__FILE__), '..', 'ext'))
-$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'ext')))
+$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
require 'curb'
require 'uri'
View
2 tests/tc_curl_download.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), 'helper')
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
class TestCurbCurlDownload < Test::Unit::TestCase
include TestServerMethods
View
2 tests/tc_curl_easy.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), 'helper')
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
class TestCurbCurlEasy < Test::Unit::TestCase
def test_class_perform_01
View
2 tests/tc_curl_multi.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), 'helper')
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
class TestCurbCurlMulti < Test::Unit::TestCase
def teardown
View
2 tests/tc_curl_postfield.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), 'helper')
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
class TestCurbCurlPostfield < Test::Unit::TestCase
def test_private_new

0 comments on commit 061a0c0

Please sign in to comment.