Skip to content

Commit b712917

Browse files
committed
test: exclude multibyte tests for JRuby
* JRuby doesn't seem to be able to handle method names containing multi-byte strings correctly. * see jruby/jruby#1285 * see jruby/jruby#3880
1 parent facbfd3 commit b712917

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- uses: ruby/setup-ruby@v1
2828
with:
2929
ruby-version: ${{ matrix.ruby }}
30-
bundler-cache: true
30+
bundler-cache: true
3131
# - run: bundle install
32-
- run: bundle exec rake test
32+
- if: matrix.ruby != 'jruby'
33+
run: bundle exec rake test
34+
- if: matrix.ruby == 'jruby'
35+
run: bundle exec rake test TESTOPTS='--ignore-name=/multibyte/'

Rakefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
require "bundler/gem_tasks"
2+
require "rake/testtask"
23

3-
task :default => :test
4-
5-
desc "run unit tests"
6-
task :test do
7-
ruby("test/run-test.rb")
4+
Rake::TestTask.new(:test) do |t|
5+
t.libs << "lib"
6+
t.test_files = FileList['test/**/test*.rb']
87
end
8+
9+
task :default => :test

0 commit comments

Comments
 (0)