mirror of https://gitee.com/bigwinds/arangodb
Moved another test to use the document endpoint instead of the edge endpoint.
This commit is contained in:
parent
5f81b138db
commit
1ebf6996e3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue