Skip to content

Commit

Permalink
Fix test warnings (#698)
Browse files Browse the repository at this point in the history
* Encoding should be saved before creating Irb objects

* Fix unused local warning
  • Loading branch information
st0012 authored Aug 29, 2023
1 parent ae0e5bb commit 036ec31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/irb/test_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_eval_input_raise2x
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
Expand Down
2 changes: 1 addition & 1 deletion test/irb/test_irb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def dynamic_prompt(&block)
end

def setup
@irb = build_irb
save_encodings
@irb = build_irb
end

def teardown
Expand Down

0 comments on commit 036ec31

Please sign in to comment.