Permalink
Browse files

RUBY-478 README.md - document individual test running with -Ilib

  • Loading branch information...
1 parent c2b19fd commit 3fc1fd753ecc186b690d2030a80ab289de526035 @gjmurakami-10gen gjmurakami-10gen committed Oct 5, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −3 README.md
  2. +0 −1 test/replica_set/basic_test.rb
  3. +0 −1 test/replica_set/connect_test.rb
View
@@ -333,15 +333,15 @@ If you want to test replica set, you can run the following task:
To run a single test at the top level, add -Itest since we no longer modify LOAD_PATH:
- $ ruby -Itest test/bson/bson_test.rb
+ $ ruby -Itest -Ilib test/bson/bson_test.rb
To run a single test from the test directory, add -I. since we no longer modify LOAD_PATH:
- $ ruby -I. bson/bson_test.rb
+ $ ruby -I. -I../lib bson/bson_test.rb
To run a single test from its subdirectory, add -I.. since we no longer modify LOAD_PATH:
- $ ruby -I.. bson_test.rb
+ $ ruby -I.. -I../../lib bson_test.rb
# Release Notes
@@ -1,4 +1,3 @@
-$:.unshift(File.join(File.dirname(__FILE__), '../..', 'lib'))
require 'test_helper'
class BasicTest < Test::Unit::TestCase
@@ -1,4 +1,3 @@
-$:.unshift(File.join(File.dirname(__FILE__), '../..', 'lib'))
require 'test_helper'
class ConnectTest < Test::Unit::TestCase

0 comments on commit 3fc1fd7

Please sign in to comment.