Skip to content

Commit 036ec31

Browse files
authored
Fix test warnings (#698)
* Encoding should be saved before creating Irb objects * Fix unused local warning
1 parent ae0e5bb commit 036ec31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/irb/test_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_eval_input_raise2x
9393
def test_prompt_n_deprecation
9494
irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new))
9595

96-
out, err = capture_output do
96+
_, err = capture_output do
9797
irb.context.prompt_n = "foo"
9898
irb.context.prompt_n
9999
end

test/irb/test_irb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def dynamic_prompt(&block)
9494
end
9595

9696
def setup
97-
@irb = build_irb
9897
save_encodings
98+
@irb = build_irb
9999
end
100100

101101
def teardown

0 commit comments

Comments
 (0)