Skip to content

Commit 01dda86

Browse files
committed
Import test assertions from ruby/ruby
1 parent 9d5de51 commit 01dda86

File tree

5 files changed

+1176
-2
lines changed

5 files changed

+1176
-2
lines changed

Rakefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Bundler::GemHelper.install_tasks
33

44
require "rake/testtask"
55
Rake::TestTask.new(:test) do |t|
6-
t.libs << "test"
7-
t.libs << "lib"
6+
t.libs << "test/lib" << "test"
7+
t.ruby_opts << "-rhelper"
88
t.test_files = FileList['test/**/test_*.rb']
99
t.verbose = true
1010
t.warning = true
@@ -31,4 +31,11 @@ else
3131
Rake::ExtensionTask.new("psych")
3232
end
3333

34+
task :sync_tool do
35+
require 'fileutils'
36+
FileUtils.cp "../ruby/tool/lib/test/unit/core_assertions.rb", "./test/lib"
37+
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
38+
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
39+
end
40+
3441
task :default => [:compile, :test]

0 commit comments

Comments
 (0)