Skip to content

Commit

Permalink
test sample correction
Browse files Browse the repository at this point in the history
  • Loading branch information
anupama-kumari committed Oct 10, 2023
1 parent 139787e commit b8bd29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_jsonpath.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8bd29f

Please sign in to comment.