summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index d08e096..ec02f00 100644
--- a/Rakefile
+++ b/Rakefile
@@ -3,8 +3,8 @@ Bundler::GemHelper.install_tasks
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
- t.libs << "test"
- t.libs << "lib"
+ t.libs << "test/lib" << "test"
+ t.ruby_opts << "-rhelper"
t.test_files = FileList['test/**/test_*.rb']
t.verbose = true
t.warning = true
@@ -31,4 +31,11 @@ else
Rake::ExtensionTask.new("psych")
end
+task :sync_tool do
+ require 'fileutils'
+ FileUtils.cp "../ruby/tool/lib/test/unit/core_assertions.rb", "./test/lib"
+ FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
+ FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
+end
+
task :default => [:compile, :test]