Skip to content

Commit 3258346

Browse files
committed
Move the condition to omit to command line option
1 parent 8b9b5b6 commit 3258346

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Rake::TestTask.new(:test) do |t|
3232
end
3333
t.libs << "test/lib"
3434
t.ruby_opts << "-rhelper"
35+
t.options = "--ignore-name=TestIO_Console#test_bad_keyword" if RUBY_ENGINE == "jruby"
3536
t.test_files = FileList["test/**/test_*.rb"]
3637
end
3738

test/io/console/test_io_console.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ def test_failed_path
5252
end if FailedPathExceptions
5353

5454
def test_bad_keyword
55-
# JRuby in CI still fails to reject this bad keyword argument
56-
omit if RUBY_ENGINE == 'jruby'
57-
5855
assert_raise_with_message(ArgumentError, /unknown keyword:.*bad/) do
5956
File.open(IO::NULL) do |f|
6057
f.raw(bad: 0)

0 commit comments

Comments
 (0)