Skip to content

Commit

Permalink
Use require check instead of DONT_RUN_RELINE_TEST env
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Feb 9, 2020
1 parent 106c31f commit 1df99d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/readline/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ def use_ext_readline # Use ext/readline as Readline
Object.const_set(:Readline, ReadlineSo)
end

unless ENV['DONT_RUN_RELINE_TEST']
begin
require "reline"
rescue LoadError
else
def use_lib_reline # Use lib/reline as Readline
Reline.send(:remove_const, 'IOGate') if Reline.const_defined?('IOGate')
Reline.const_set('IOGate', Reline::GeneralIO)
Expand Down

0 comments on commit 1df99d1

Please sign in to comment.