From b8bd29f89d55ae7c6dcfd5c528228e4d0afd6776 Mon Sep 17 00:00:00 2001 From: Anupama Kumari Date: Tue, 10 Oct 2023 16:40:05 +0530 Subject: [PATCH] test sample correction --- test/test_jsonpath.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_jsonpath.rb b/test/test_jsonpath.rb index 5ad999d..80fa0bb 100644 --- a/test/test_jsonpath.rb +++ b/test/test_jsonpath.rb @@ -1314,7 +1314,7 @@ def test_extractore_with_dollar_key end def test_symbolize_key - data = { "store" => { "book" => [{"category" => "test"}]}} + data = { "store" => { "book" => [{"category" => "reference"}]}} assert_equal [{"category": "reference"}], JsonPath.new('$..book[0]', symbolize_keys: true).on(data) assert_equal [{"category": "reference"}], JsonPath.new('$..book[0]').on(data, symbolize_keys: true) end