From 2f192c73cccdfd81e4ac2206feadc48b2757c19c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Barri=C3=A9?= Date: Mon, 24 Nov 2025 17:41:33 +0100 Subject: [ruby/json] Respect Coder depth when generating https://github.com/ruby/json/commit/9c36681b17 --- test/json/json_coder_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/json/json_coder_test.rb') diff --git a/test/json/json_coder_test.rb b/test/json/json_coder_test.rb index 1f9bc814e3..47e12ff919 100755 --- a/test/json/json_coder_test.rb +++ b/test/json/json_coder_test.rb @@ -134,7 +134,7 @@ class JSONCoderTest < Test::Unit::TestCase def test_depth coder = JSON::Coder.new(object_nl: "\n", array_nl: "\n", space: " ", indent: " ", depth: 1) - assert_equal %({\n "foo": 42\n}), coder.dump(foo: 42) + assert_equal %({\n "foo": 42\n }), coder.dump(foo: 42) end def test_nesting_recovery -- cgit v1.2.3