Browse files

Remove LOAD_PATH hacking in test_helper.rb.

  • Loading branch information...
1 parent 82c24b3 commit eec5a47397829be3a02b21f38779069042a38f67 @jfirebaugh committed Sep 23, 2010
Showing with 3 additions and 10 deletions.
  1. +3 −10 test/test_helper.rb
@@ -1,14 +1,7 @@
-dir = File.dirname(__FILE__)
-$LOAD_PATH.unshift "#{dir}/../lib"
-predicated_project_dir = File.expand_path("../predicated")
-if File.exist?(predicated_project_dir) # if predicated project is a sibling of this project
- puts "using predicated from #{predicated_project_dir}"
- $LOAD_PATH.unshift "#{predicated_project_dir}/lib"
- require "predicated"

alexch Sep 23, 2010

I think we should discuss this -- Steve and I have been doing simultaneous development on both projects and this would seem to force us to do a predicated release (or at least rake install) after an edit so it would slow things down. Which might be a good idea but deserves discussion.


jfirebaugh Sep 23, 2010


Yeah I figured that's what it's for; feel free to drop this commit in your pull. It tripped me up because I had an outdated version of predicated as a sibling.


alexch Sep 23, 2010

Hence the warning :-) -- but yeah, maybe it could check the Predicated version number to avoid that?

require "rubygems"
+require "bundler"
require "minitest/spec"
require "minitest/unit"
require "pp"

0 comments on commit eec5a47

Please sign in to comment.