From d5fb76a6c8d86253110d265070e775a1bf9f9730 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 29 Oct 2022 22:25:42 +0900 Subject: [PATCH] [ruby/optparse] Add tests for `load(into:)` https://github.com/ruby/optparse/commit/51f7e060ee --- test/optparse/test_load.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/optparse/test_load.rb b/test/optparse/test_load.rb index de24f1c380..0ebe855682 100644 --- a/test/optparse/test_load.rb +++ b/test/optparse/test_load.rb @@ -27,6 +27,8 @@ class TestOptionParserLoad < Test::Unit::TestCase def assert_load(result) assert new_parser.load assert_equal(result, @result) + assert new_parser.load(into: into = {}) + assert_equal({test: result}, into) end def setup_options(env, dir, suffix = nil)