Skip to content

Commit

Permalink
Move the condition to omit to command line option
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 30, 2024
1 parent 8b9b5b6 commit 3258346
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Rake::TestTask.new(:test) do |t|
end
t.libs << "test/lib"
t.ruby_opts << "-rhelper"
t.options = "--ignore-name=TestIO_Console#test_bad_keyword" if RUBY_ENGINE == "jruby"
t.test_files = FileList["test/**/test_*.rb"]
end

Expand Down
3 changes: 0 additions & 3 deletions test/io/console/test_io_console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ def test_failed_path
end if FailedPathExceptions

def test_bad_keyword
# JRuby in CI still fails to reject this bad keyword argument
omit if RUBY_ENGINE == 'jruby'

assert_raise_with_message(ArgumentError, /unknown keyword:.*bad/) do
File.open(IO::NULL) do |f|
f.raw(bad: 0)
Expand Down

0 comments on commit 3258346

Please sign in to comment.