Path fixes for test in Ruby 1.9.2
This commit is contained in:
parent
3a4134a5c2
commit
7309d7e48b
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# Demonstrate features in MongoDB 1.4
|
# Demonstrate features in MongoDB 1.4
|
||||||
class Features14Test < Test::Unit::TestCase
|
class Features14Test < Test::Unit::TestCase
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: This test requires bouncing the server.
|
# NOTE: This test requires bouncing the server.
|
||||||
# It also requires that a user exists on the admin database.
|
# It also requires that a user exists on the admin database.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: This test requires bouncing the server
|
# NOTE: This test requires bouncing the server
|
||||||
class AutoreconnectTest < Test::Unit::TestCase
|
class AutoreconnectTest < Test::Unit::TestCase
|
||||||
|
@ -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.
|
# NOTE: these tests are run only if we can connect to a single MongoDB in slave mode.
|
||||||
class SlaveConnectionTest < Test::Unit::TestCase
|
class SlaveConnectionTest < Test::Unit::TestCase
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
require 'logger'
|
require 'logger'
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
require 'thread'
|
require 'thread'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
require 'mongo/exceptions'
|
require 'mongo/exceptions'
|
||||||
require 'mongo/util/conversions'
|
require 'mongo/util/conversions'
|
||||||
require 'bson/ordered_hash'
|
require 'bson/ordered_hash'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
require 'logger'
|
require 'logger'
|
||||||
|
|
||||||
class CursorTest < Test::Unit::TestCase
|
class CursorTest < Test::Unit::TestCase
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
require 'logger'
|
require 'logger'
|
||||||
|
|
||||||
class CursorTest < Test::Unit::TestCase
|
class CursorTest < Test::Unit::TestCase
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
class DBAPITest < Test::Unit::TestCase
|
class DBAPITest < Test::Unit::TestCase
|
||||||
include Mongo
|
include Mongo
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
class DBConnectionTest < Test::Unit::TestCase
|
class DBConnectionTest < Test::Unit::TestCase
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
$:.unshift '.'
|
require './test/test_helper'
|
||||||
require 'test/test_helper'
|
|
||||||
require 'digest/md5'
|
require 'digest/md5'
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
require 'logger'
|
require 'logger'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
include Mongo
|
include Mongo
|
||||||
|
|
||||||
class GridFileSystemTest < Test::Unit::TestCase
|
class GridFileSystemTest < Test::Unit::TestCase
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
include Mongo
|
include Mongo
|
||||||
|
|
||||||
class GridIOTest < Test::Unit::TestCase
|
class GridIOTest < Test::Unit::TestCase
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
include Mongo
|
include Mongo
|
||||||
|
|
||||||
class GridTest < Test::Unit::TestCase
|
class GridTest < Test::Unit::TestCase
|
||||||
@ -139,7 +139,7 @@ class GridTest < Test::Unit::TestCase
|
|||||||
io.rewind
|
io.rewind
|
||||||
data = io.read
|
data = io.read
|
||||||
if data.respond_to?(:force_encoding)
|
if data.respond_to?(:force_encoding)
|
||||||
data.force_encoding(:binary)
|
data.force_encoding("binary")
|
||||||
end
|
end
|
||||||
read_data = ""
|
read_data = ""
|
||||||
while(chunk = file.read(read_length))
|
while(chunk = file.read(read_length))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# encoding:utf-8
|
# encoding:utf-8
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
class BinaryTest < Test::Unit::TestCase
|
class BinaryTest < Test::Unit::TestCase
|
||||||
context "Inspecting" do
|
context "Inspecting" do
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# encoding:utf-8
|
# encoding:utf-8
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
require 'complex'
|
require 'complex'
|
||||||
require 'bigdecimal'
|
require 'bigdecimal'
|
||||||
require 'rational'
|
require 'rational'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
class ByteBufferTest < Test::Unit::TestCase
|
class ByteBufferTest < Test::Unit::TestCase
|
||||||
include BSON
|
include BSON
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
class OrderedHashTest < Test::Unit::TestCase
|
class OrderedHashTest < Test::Unit::TestCase
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: this test should be run only if a replica pair is running.
|
# NOTE: this test should be run only if a replica pair is running.
|
||||||
class ReplicaPairCountTest < Test::Unit::TestCase
|
class ReplicaPairCountTest < Test::Unit::TestCase
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: this test should be run only if a replica pair is running.
|
# NOTE: this test should be run only if a replica pair is running.
|
||||||
class ReplicaPairInsertTest < Test::Unit::TestCase
|
class ReplicaPairInsertTest < Test::Unit::TestCase
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: this test should be run only if a replica pair is running.
|
# NOTE: this test should be run only if a replica pair is running.
|
||||||
class ReplicaPairPooledInsertTest < Test::Unit::TestCase
|
class ReplicaPairPooledInsertTest < Test::Unit::TestCase
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: this test should be run only if a replica pair is running.
|
# NOTE: this test should be run only if a replica pair is running.
|
||||||
class ReplicaPairQueryTest < Test::Unit::TestCase
|
class ReplicaPairQueryTest < Test::Unit::TestCase
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: This test expects a replica set of three nodes to be running
|
# NOTE: This test expects a replica set of three nodes to be running
|
||||||
# on the local host.
|
# on the local host.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: This test expects a replica set of three nodes to be running
|
# NOTE: This test expects a replica set of three nodes to be running
|
||||||
# on the local host.
|
# on the local host.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
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
|
# NOTE: This test expects a replica set of three nodes, one of which is an arbiter, to be running
|
||||||
# on the local host.
|
# on the local host.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: This test expects a replica set of three nodes to be running
|
# NOTE: This test expects a replica set of three nodes to be running
|
||||||
# on the local host.
|
# on the local host.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
# NOTE: This test expects a replica set of three nodes to be running
|
# NOTE: This test expects a replica set of three nodes to be running
|
||||||
# on the local host.
|
# on the local host.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
require 'test/unit'
|
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.
|
# NOTE: This test expects a replica set of three nodes to be running on local host.
|
||||||
class ReplicaSetAckTest < Test::Unit::TestCase
|
class ReplicaSetAckTest < Test::Unit::TestCase
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
class TestThreading < Test::Unit::TestCase
|
class TestThreading < Test::Unit::TestCase
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require File.expand_path('./test/test_helper.rb')
|
||||||
|
|
||||||
class CollectionTest < Test::Unit::TestCase
|
class CollectionTest < Test::Unit::TestCase
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
include Mongo
|
include Mongo
|
||||||
|
|
||||||
class ConnectionTest < Test::Unit::TestCase
|
class ConnectionTest < Test::Unit::TestCase
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
class CursorTest < Test::Unit::TestCase
|
class CursorTest < Test::Unit::TestCase
|
||||||
context "Cursor options" do
|
context "Cursor options" do
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require 'test/test_helper'
|
require './test/test_helper'
|
||||||
|
|
||||||
class DBTest < Test::Unit::TestCase
|
class DBTest < Test::Unit::TestCase
|
||||||
context "DBTest: " do
|
context "DBTest: " do
|
||||||
|
Loading…
Reference in New Issue
Block a user