diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-12-12 19:47:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-12-25 19:12:31 +0900 |
commit | e5e4db1748d09635c6b20c3b880e5b55d84f7dea (patch) | |
tree | 74a24278fe544325fe6ed536b2d51fd5488c9a98 /test/ruby/test_rubyoptions.rb | |
parent | 7f738bb5d7030979469be1e28b8ddd8ef0687733 (diff) |
[Feature #20884] Define toplevel "Ruby" module with constants
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12451
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index ac4b5870eb..931d0cf7aa 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -1328,17 +1328,6 @@ class TestRubyOptions < Test::Unit::TestCase end def test_toplevel_ruby - reserved = ["", [], /::Ruby is reserved/] - env = {"RUBYOPT"=>""} - args = %w[-e Ruby=1] - assert_in_out_err([env, *args]) - assert_in_out_err([env, "-w", *args], *reserved) - assert_in_out_err([env, "-W:deprecated", *args], *reserved) - assert_in_out_err([env, "-w", "-W:no-deprecated", *args]) - - args = ["-e", "class A; Ruby=1; end"] - assert_in_out_err([env, *args]) - assert_in_out_err([env, "-w", *args]) - assert_in_out_err([env, "-W:deprecated", *args]) + assert_instance_of Module, ::Ruby end end |