summaryrefslogtreecommitdiff
path: root/test/irb/test_option.rb
blob: fec31f384f96fe240280a1caa48d26a5bfd705d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: false
require_relative "helper"

module TestIRB
  class OptionTest < TestCase
    def test_end_of_option
      bug4117 = '[ruby-core:33574]'
      bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
      status = assert_in_out_err(bundle_exec + %w[-W0 -rirb -e IRB.start(__FILE__) -- -f --], "", //, [], bug4117)
      assert(status.success?, bug4117)
    end
  end
end