We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a66129 commit 099da88Copy full SHA for 099da88
test/ruby/test_box.rb
@@ -1,10 +1,11 @@
1
# frozen_string_literal: true
2
3
require 'test/unit'
4
+require 'rbconfig'
5
6
class TestBox < Test::Unit::TestCase
7
EXPERIMENTAL_WARNING_LINE_PATTERNS = [
- /ruby(\.exe)?: warning: Ruby::Box is experimental, and the behavior may change in the future!/,
8
+ /#{RbConfig::CONFIG["ruby_install_name"] || "ruby"}(\.exe)?: warning: Ruby::Box is experimental, and the behavior may change in the future!/,
9
%r{See https://docs.ruby-lang.org/en/(master|\d\.\d)/Ruby/Box.html for known issues, etc.}
10
]
11
ENV_ENABLE_BOX = {'RUBY_BOX' => '1', 'TEST_DIR' => __dir__}
0 commit comments