diff options
Diffstat (limited to 'test/irb/test_workspace.rb')
-rw-r--r-- | test/irb/test_workspace.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/irb/test_workspace.rb b/test/irb/test_workspace.rb index 1a1dc1f49b..199ce95a37 100644 --- a/test/irb/test_workspace.rb +++ b/test/irb/test_workspace.rb @@ -1,13 +1,13 @@ # frozen_string_literal: false -require 'test/unit' require 'tempfile' -require 'rubygems' require 'irb' require 'irb/workspace' require 'irb/color' +require_relative "helper" + module TestIRB - class TestWorkSpace < Test::Unit::TestCase + class WorkSpaceTest < TestCase def test_code_around_binding IRB.conf[:USE_COLORIZE] = false Tempfile.create('irb') do |f| @@ -82,7 +82,6 @@ module TestIRB def test_toplevel_binding_local_variables - pend if RUBY_ENGINE == 'truffleruby' bug17623 = '[ruby-core:102468]' bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : [] top_srcdir = "#{__dir__}/../.." @@ -91,7 +90,7 @@ module TestIRB irb_path = "#{top_srcdir}/#{dir}/irb" File.exist?(irb_path) end or omit 'irb command not found' - assert_in_out_err(bundle_exec + ['-W0', "-C#{top_srcdir}", '-e', <<~RUBY , '--', '-f', '--'], 'binding.local_variables', /\[:_\]/, [], bug17623) + assert_in_out_err(bundle_exec + ['-W0', "-C#{top_srcdir}", '-e', <<~RUBY, '--', '-f', '--'], 'binding.local_variables', /\[:_\]/, [], bug17623) version = 'xyz' # typical rubygems loading file load('#{irb_path}') RUBY |