8000 Use test-unit and CoreAssertions instead of deep copy from ruby core … · djberube/ruby@d4f1e0d · GitHub
[go: up one dir, main page]

Skip to content

Commit d4f1e0d

Browse files
authored
Use test-unit and CoreAssertions instead of deep copy from ruby core repository (ruby#26)
1 parent 9e9eb5b commit d4f1e0d

File tree

11 files changed

+663
-3720
lines changed

11 files changed

+663
-3720
lines changed

Rakefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ require "bundler/gem_tasks"
1010
require "rake/testtask"
1111

1212
Rake::TestTask.new(:test) do |t|
13-
t.libs << "test" << "test/lib"
14-
t.libs << "lib"
15-
t.test_files = FileList['test/**/test_*.rb']
13+
t.libs << "test/lib"
14+
t.ruby_opts << "-rhelper"
15+
t.test_files = FileList["test/**/test_*.rb"]
16+
end
17+
18+
task :sync_tool do
19+
require 'fileutils'
20+
FileUtils.cp "../ruby/tool/lib/test/unit/core_assertions.rb", "./test/lib"
21+
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
22+
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
1623
end
1724

1825
task :default => [:test]

0 commit comments

Comments
 (0)
0