Skip to content

Commit f00acb8

Browse files
committed
Fix truffleruby specs
1 parent e019177 commit f00acb8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Rakefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,19 @@ task default: %i[test rubocop]
99
begin
1010
fork { nil }
1111
rescue NotImplementedError
12-
# jruby and windows can't fork so use vanilla rake instead
12+
# jruby, truffleruby, and windows can't fork so use vanilla rake instead
13+
warn "warn: fork is not implemented on this Ruby, falling back to vanilla rake"
1314
require 'rake/testtask'
15+
Rake::TestTask.new do |t|
16+
t.libs << "test"
17+
t.test_files = FileList['test/test_*.rb']
18+
t.verbose = true
19+
end
1420
else
1521
desc 'Run each test in isolation'
1622
task :test do
1723
sh 'forking-test-runner test/test_* --helper test/helper.rb --verbose'
1824
end
1925
end
26+
2027
RuboCop::RakeTask.new

0 commit comments

Comments
 (0)