spec/jsonpath_spec.rb in jsonpath-0.1.0 vs spec/jsonpath_spec.rb in jsonpath-0.1.2
- old
+ new
@@ -84,6 +84,11 @@
it "should correct retrieve the right number of all nodes" do
JsonPath.new('$..*').on(@object).to_a.size.should == 28
end
+ it "should deal with a space in the key name" do
+ JsonPath.new("$.'c d'").on({"a" => "a","b" => "b", "c d" => "e"}).to_a.should == ['e']
+
+ end
+
end