Setup load path in path_to_enlightenment, so -I not needed in Rakefile.
authorJim Weirich <jim.weirich@gmail.com>
Mon, 16 Aug 2010 19:39:46 +0000 (15:39 -0400)
committerJim Weirich <jim.weirich@gmail.com>
Mon, 16 Aug 2010 19:39:46 +0000 (15:39 -0400)
src/Rakefile
src/path_to_enlightenment.rb

index 171fffe..1a2c7f2 100644 (file)
@@ -7,6 +7,6 @@ require 'rake/testtask'
 task :default => :test
 
 task :test do
-  ruby '-I.', 'path_to_enlightenment.rb'
+  ruby 'path_to_enlightenment.rb'
 end
 
index 6a87bcb..ee57759 100644 (file)
@@ -1,5 +1,7 @@
 # The path to Ruby Enlightenment starts with the following:
 
+$LOAD_PATH << File.dirname(__FILE__)
+
 require 'about_asserts'
 require 'about_nil'
 require 'about_arrays'