Skip to content

Commit c428935

Browse files
hsbtmarcandre
authored andcommitted
Use test-unit and CoreAssertions instead of deep copy from ruby core repository.
1 parent f7c9981 commit c428935

File tree

11 files changed

+664
-3722
lines changed

11 files changed

+664
-3722
lines changed

Rakefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@ require "bundler/gem_tasks"
22
require "rake/testtask"
33

44
Rake::TestTask.new(:test) do |t|
5-
t.libs << "test" << "test/lib"
6-
t.libs << "lib"
7-
t.test_files = FileList['test/**/test_*.rb']
5+
t.libs << "test/lib"
6+
t.ruby_opts << "-rhelper"
7+
t.test_files = FileList["test/**/test_*.rb"]
88
end
99

10-
task :default => [:test]
10+
task :sync_tool do
11+
require 'fileutils'
12+
FileUtils.cp "../ruby/tool/lib/test/unit/core_assertions.rb", "./test/lib"
13+
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
14+
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
15+
end
16+
17+
task :default => :test

0 commit comments

Comments
 (0)