From 39a90530f84ffab0f0e242b49d453fa5d69be381 Mon Sep 17 00:00:00 2001
From: Diego Gomez <diego.f.gomez.pardo@gmail.com>
Date: Mon, 10 Mar 2014 17:56:46 -0500
Subject: [PATCH] add properties parameter to the batch method for create
 unique relationship

---
 spec/unit/rest/batch_spec.rb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/spec/unit/rest/batch_spec.rb b/spec/unit/rest/batch_spec.rb
index 9abcbb6..1810c79 100644
--- a/spec/unit/rest/batch_spec.rb
+++ b/spec/unit/rest/batch_spec.rb
@@ -159,13 +159,13 @@ class Rest
 
       it "creates unique nodes" do
         expected_body = [
-          { "id" => 0, "method" => "POST", "to" => "/index/relationship/index1?unique", "body" => { "key" => "key1", "value" => "value1", "type" => "type1", "start" => "/node/node1", "end" => "/node/node2" } },
-          { "id" => 1, "method" => "POST", "to" => "/index/relationship/index2?unique", "body" => { "key" => "key2", "value" => "value2", "type" => "type2", "start" => "{0}", "end" => "{1}" } }
+          { "id" => 0, "method" => "POST", "to" => "/index/relationship/index1?unique", "body" => { "key" => "key1", "value" => "value1", "type" => "type1", "start" => "/node/node1", "end" => "/node/node2", "properties" => "properties" } },
+          { "id" => 1, "method" => "POST", "to" => "/index/relationship/index2?unique", "body" => { "key" => "key2", "value" => "value2", "type" => "type2", "start" => "{0}", "end" => "{1}", "properties" => "properties" } }
         ]
 
         connection.should_receive(:post).with("/batch", json_match(:body, expected_body))
-        subject.execute [:create_unique_relationship, "index1", "key1", "value1", "type1", "node1", "node2" ],
-                        [:create_unique_relationship, "index2", "key2", "value2", "type2", "{0}", "{1}" ]
+        subject.execute [:create_unique_relationship, "index1", "key1", "value1", "type1", "node1", "node2","properties"  ],
+                        [:create_unique_relationship, "index2", "key2", "value2", "type2", "{0}", "{1}", "properties" ]
       end
 
       it "adds relationships to an index" do