1
0
Fork 0

Moved another test to use the document endpoint instead of the edge endpoint.

This commit is contained in:
Michael Hackstein 2016-04-05 10:30:03 +02:00
parent 5f81b138db
commit 1ebf6996e3
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ describe ArangoDB do
end
count = 1000
cmd = "/_api/edge?collection=#{@ce}"
cmd = "/_api/document?collection=#{@ce}"
[
["World", "Europe"],
["World", "Asia"],
@ -54,8 +54,8 @@ describe ArangoDB do
count = count + 1
from = pair[0]
to = pair[1]
body = "{ \"_key\" : \"#{count}\" }"
ArangoDB.post(cmd + "&from=#{@cv}%2F#{from}&to=#{@cv}%2F#{to}", :body => body)
body = "{ \"_key\" : \"#{count}\", \"_from\": \"#{@cv}/#{from}\", \"_to\": \"#{@cv}/#{to}\"}"
ArangoDB.post(cmd, :body => body)
end
end