Permalink
Browse files

lib shouldn't manage load path

  • Loading branch information...
1 parent 642e3b4 commit 5ae1227ab482205441f22cb8b9f478be39d647c6 @josh josh committed Sep 23, 2009
Showing with 2 additions and 3 deletions.
  1. +2 −0 Thorfile
  2. +0 −1 lib/thor.rb
  3. +0 −2 spec/spec_helper.rb
View
2 Thorfile
@@ -10,11 +10,13 @@ class Default < Thor
include Thor::RakeCompat
Spec::Rake::SpecTask.new(:spec) do |t|
+ t.libs << 'lib'
t.spec_opts = ['--options', "spec/spec.opts"]
t.spec_files = FileList['spec/**/*_spec.rb']
end
Spec::Rake::SpecTask.new(:rcov) do |t|
+ t.libs << 'lib'
t.spec_opts = ['--options', "spec/spec.opts"]
t.spec_files = FileList['spec/**/*_spec.rb']
t.rcov = true
View
1 lib/thor.rb
@@ -1,4 +1,3 @@
-$:.unshift File.expand_path(File.dirname(__FILE__))
require 'thor/base'
require 'thor/group'
require 'thor/actions'
View
2 spec/spec_helper.rb
@@ -1,7 +1,5 @@
$TESTING=true
-$:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
-
require 'thor'
require 'stringio'
require 'rubygems'

0 comments on commit 5ae1227

Please sign in to comment.