mirror of https://gitee.com/bigwinds/arangodb
fixed tests
This commit is contained in:
parent
54d39573d3
commit
ef35aca8e8
|
@ -50,7 +50,7 @@ describe ArangoDB do
|
|||
|
||||
doc.code.should eq(400)
|
||||
doc.parsed_response['error'].should eq(true)
|
||||
doc.parsed_response['errorNum'].should eq(1203)
|
||||
doc.parsed_response['errorNum'].should eq(400)
|
||||
doc.parsed_response['code'].should eq(400)
|
||||
doc.headers['content-type'].should eq("application/json; charset=utf-8")
|
||||
end
|
||||
|
|
|
@ -43,10 +43,10 @@ describe ArangoDB do
|
|||
cmd = "/_api/document//123456"
|
||||
doc = ArangoDB.log_get("#{prefix}-bad-handle2", cmd)
|
||||
|
||||
doc.code.should eq(400)
|
||||
doc.code.should eq(404)
|
||||
doc.parsed_response['error'].should eq(true)
|
||||
doc.parsed_response['errorNum'].should eq(1203)
|
||||
doc.parsed_response['code'].should eq(400)
|
||||
doc.parsed_response['code'].should eq(404)
|
||||
doc.headers['content-type'].should eq("application/json; charset=utf-8")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue