Permalink
Browse files

Update imported tests to be runnable

  • Loading branch information...
1 parent 8815359 commit 9d92018a9ffaba2bcdd6b832e5429bc4c7a5ffd2 @gdb committed Jul 10, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 test/imported/db_api_test.rb
  2. +3 −3 test/imported/test_helper.rb
View
2 test/imported/db_api_test.rb
@@ -1,4 +1,4 @@
-require './test/test_helper'
+require File.join(File.dirname(__FILE__), 'test_helper')
class DBAPITest < Test::Unit::TestCase
include Mongo
View
6 test/imported/test_helper.rb
@@ -1,6 +1,6 @@
-$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$:.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
require 'rubygems' if RUBY_VERSION < '1.9.0' && ENV['C_EXT']
-require 'mongo'
+require 'embedded-mongo'
require 'test/unit'
def silently
@@ -47,7 +47,7 @@ class Test::Unit::TestCase
include BSON
def self.standard_connection(options={})
- Connection.new(TEST_HOST, TEST_PORT, options)
+ EmbeddedMongo::Connection.new(TEST_HOST, TEST_PORT, options)
end
def standard_connection(options={})

0 comments on commit 9d92018

Please sign in to comment.