diff --git a/lib/neography/rest/node_labels.rb b/lib/neography/rest/node_labels.rb index fe78a9c..b48ab16 100644 --- a/lib/neography/rest/node_labels.rb +++ b/lib/neography/rest/node_labels.rb @@ -7,7 +7,7 @@ class NodeLabels add_path :base, "/labels" add_path :node, "/node/:id/labels" add_path :nodes, "/label/:label/nodes" - add_path :find, "/label/:label/nodes?:property=\":value\"" + add_path :find, "/label/:label/nodes?:property=%22:value%22" add_path :delete, "/node/:id/labels/:label" def initialize(connection) diff --git a/spec/unit/rest/rest_labels_spec.rb b/spec/unit/rest/rest_labels_spec.rb index b0ede40..579e7a6 100644 --- a/spec/unit/rest/rest_labels_spec.rb +++ b/spec/unit/rest/rest_labels_spec.rb @@ -23,7 +23,7 @@ class Rest end it "find nodes for labels and property" do - connection.should_receive(:get).with("/label/person/nodes?name=\"max\"") + connection.should_receive(:get).with("/label/person/nodes?name=%22max%22") subject.find_nodes("person", {:name => "max"}) end