Permalink
Browse files

Don't abuse load path

  • Loading branch information...
1 parent c288a3e commit 37485cd820f5c89184fd8b35204dceb60eb1c001 @semaperepelitsa committed Sep 25, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −2 lib/spork/test_framework/minitest.rb
  2. +1 −0 unit_project/test/test_helper.rb
@@ -7,13 +7,12 @@ def self.helper_file
def run_tests(argv, stderr, stdout)
require "minitest/unit"
- $LOAD_PATH << "test" << "."
::MiniTest::Unit.output = stdout
paths, opts = parse_options(argv)
paths.each do |path|
- require path
+ load path
end
::MiniTest::Unit.new.run(opts)
@@ -1,4 +1,5 @@
require "spork"
+$LOAD_PATH << "test"
Spork.prefork do
require "minitest/unit"

0 comments on commit 37485cd

Please sign in to comment.