[ruby/irb] Fix test warnings (https://github.com/ruby/irb/pull/698)
* Encoding should be saved before creating Irb objects * Fix unused local warning https://github.com/ruby/irb/commit/036ec31034
This commit is contained in:
parent
f0b43597ff
commit
0cfb779692
@ -93,7 +93,7 @@ module TestIRB
|
||||
def test_prompt_n_deprecation
|
||||
irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new))
|
||||
|
||||
out, err = capture_output do
|
||||
_, err = capture_output do
|
||||
irb.context.prompt_n = "foo"
|
||||
irb.context.prompt_n
|
||||
end
|
||||
|
@ -94,8 +94,8 @@ module TestIRB
|
||||
end
|
||||
|
||||
def setup
|
||||
@irb = build_irb
|
||||
save_encodings
|
||||
@irb = build_irb
|
||||
end
|
||||
|
||||
def teardown
|
||||
|
Loading…
x
Reference in New Issue
Block a user