Path fixes for test in Ruby 1.9.2

This commit is contained in:
Kyle Banker 2010-09-09 15:58:51 -04:00
parent 3a4134a5c2
commit 7309d7e48b
35 changed files with 36 additions and 37 deletions

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# Demonstrate features in MongoDB 1.4
class Features14Test < Test::Unit::TestCase

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: This test requires bouncing the server.
# It also requires that a user exists on the admin database.

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: This test requires bouncing the server
class AutoreconnectTest < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
# NOTE: these tests are run only if we can connect to a single MongoDB in slave mode.
class SlaveConnectionTest < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
require 'logger'
require 'stringio'
require 'thread'

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
require 'mongo/exceptions'
require 'mongo/util/conversions'
require 'bson/ordered_hash'

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
require 'logger'
class CursorTest < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
require 'logger'
class CursorTest < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
class DBAPITest < Test::Unit::TestCase
include Mongo

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
class DBConnectionTest < Test::Unit::TestCase

View File

@ -1,5 +1,4 @@
$:.unshift '.'
require 'test/test_helper'
require './test/test_helper'
require 'digest/md5'
require 'stringio'
require 'logger'

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
include Mongo
class GridFileSystemTest < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
include Mongo
class GridIOTest < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
include Mongo
class GridTest < Test::Unit::TestCase
@ -139,7 +139,7 @@ class GridTest < Test::Unit::TestCase
io.rewind
data = io.read
if data.respond_to?(:force_encoding)
data.force_encoding(:binary)
data.force_encoding("binary")
end
read_data = ""
while(chunk = file.read(read_length))

View File

@ -1,5 +1,5 @@
# encoding:utf-8
require 'test/test_helper'
require './test/test_helper'
class BinaryTest < Test::Unit::TestCase
context "Inspecting" do

View File

@ -1,5 +1,5 @@
# encoding:utf-8
require 'test/test_helper'
require './test/test_helper'
require 'complex'
require 'bigdecimal'
require 'rational'

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
class ByteBufferTest < Test::Unit::TestCase
include BSON

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
require 'rubygems'
require 'json'

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
require 'rubygems'
require 'json'

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
class OrderedHashTest < Test::Unit::TestCase

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: this test should be run only if a replica pair is running.
class ReplicaPairCountTest < Test::Unit::TestCase

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: this test should be run only if a replica pair is running.
class ReplicaPairInsertTest < Test::Unit::TestCase

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: this test should be run only if a replica pair is running.
class ReplicaPairPooledInsertTest < Test::Unit::TestCase

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: this test should be run only if a replica pair is running.
class ReplicaPairQueryTest < Test::Unit::TestCase

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: This test expects a replica set of three nodes to be running
# on the local host.

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: This test expects a replica set of three nodes to be running
# on the local host.

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: This test expects a replica set of three nodes, one of which is an arbiter, to be running
# on the local host.

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: This test expects a replica set of three nodes to be running
# on the local host.

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: This test expects a replica set of three nodes to be running
# on the local host.

View File

@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongo'
require 'test/unit'
require 'test/test_helper'
require './test/test_helper'
# NOTE: This test expects a replica set of three nodes to be running on local host.
class ReplicaSetAckTest < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
class TestThreading < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require File.expand_path('./test/test_helper.rb')
class CollectionTest < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
include Mongo
class ConnectionTest < Test::Unit::TestCase

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
class CursorTest < Test::Unit::TestCase
context "Cursor options" do

View File

@ -1,4 +1,4 @@
require 'test/test_helper'
require './test/test_helper'
class DBTest < Test::Unit::TestCase
context "DBTest: " do