Skip to content

Commit f4dc1d7

Browse files
authored
Use test-unit-ruby-core instead of deep-copy from ruby repository (#65)
I and @nobu prepared https://github.com/ruby/test-unit-ruby-core for `test-unit` with `EnvUtil`. We should remove related files from this repository.
1 parent 1b3393b commit f4dc1d7

7 files changed

Lines changed: 4 additions & 1206 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ jobs:
8888

8989
- run: gem install --verbose --backtrace pkg/*.gem
9090

91+
- run: gem install test-unit-ruby-core
92+
9193
- name: Run tests on the installed gem
9294
run: ruby run-test.rb
9395
if: matrix.ruby != '2.4' # strscan is a default gem from 2.5

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ group :development do
77
gem "rake-compiler"
88
gem "ruby-maven", :platforms => :jruby
99
gem "test-unit"
10+
gem "test-unit-ruby-core"
1011
end

Rakefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ task :benchmark do
4444
"benchmark/scan.yaml")
4545
end
4646

47-
task :sync_tool do
48-
require 'fileutils'
49-
FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
50-
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
51-
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
52-
end
53-
5447
release_task = Rake.application["release"]
5548
release_task.prerequisites.delete("build")
5649
release_task.prerequisites.delete("release:rubygem_push")

0 commit comments

Comments
 (0)