diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-10-04 15:41:13 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-01-02 18:40:45 -0800 |
commit | ff96565686c05919bcae3ea77831879e95f67457 (patch) | |
tree | e04eaa5afdaaa942ccfef86648ebfb8a632e8c33 /test/ruby/test_marshal.rb | |
parent | beae6cbf0fd8b6619e5212552de98022d4c4d4d4 (diff) | |
download | ruby-ff96565686c05919bcae3ea77831879e95f67457.tar.gz |
Update tests for full keyword argument separation
Diffstat (limited to 'test/ruby/test_marshal.rb')
-rw-r--r-- | test/ruby/test_marshal.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index f300710d2c..74ea75ee42 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -631,15 +631,16 @@ class TestMarshal < Test::Unit::TestCase def test_no_internal_ids opt = %w[--disable=gems] - args = [opt, 'Marshal.dump("",STDOUT)', true, true, encoding: Encoding::ASCII_8BIT] - out, err, status = EnvUtil.invoke_ruby(*args) + args = [opt, 'Marshal.dump("",STDOUT)', true, true] + kw = {encoding: Encoding::ASCII_8BIT} + out, err, status = EnvUtil.invoke_ruby(*args, **kw) assert_empty(err) assert_predicate(status, :success?) expected = out opt << "--enable=frozen-string-literal" opt << "--debug=frozen-string-literal" - out, err, status = EnvUtil.invoke_ruby(*args) + out, err, status = EnvUtil.invoke_ruby(*args, **kw) assert_empty(err) assert_predicate(status, :success?) assert_equal(expected, out) |