[ruby/irb] Restore encoding in InputCompletor test
(https://github.com/ruby/irb/pull/732) https://github.com/ruby/irb/commit/ef77c232cf
This commit is contained in:
parent
eb3be1dfef
commit
75fb3cf458
@ -268,12 +268,14 @@ module TestIRB
|
||||
|
||||
class DeprecatedInputCompletorTest < TestCase
|
||||
def setup
|
||||
save_encodings
|
||||
@verbose, $VERBOSE = $VERBOSE, nil
|
||||
IRB.init_config(nil)
|
||||
IRB.conf[:MAIN_CONTEXT] = IRB::Context.new(IRB::WorkSpace.new(binding))
|
||||
end
|
||||
|
||||
def teardown
|
||||
restore_encodings
|
||||
$VERBOSE = @verbose
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user