1
0
Fork 0

fixed tests

This commit is contained in:
Jan Steemann 2014-02-27 11:39:36 +01:00
parent 157df03f66
commit 8c04d6b12e
2 changed files with 14 additions and 14 deletions

View File

@ -33,40 +33,40 @@ describe ArangoDB do
body = "{ \"collection\" : \"#{@cn}\" }"
doc = ArangoDB.log_put("#{prefix}-first1", cmd, :body => body)
doc.code.should eq(400)
doc.code.should eq(501)
doc.headers['content-type'].should eq("application/json; charset=utf-8")
doc.parsed_response['error'].should eq(true)
doc.parsed_response['code'].should eq(400)
doc.parsed_response['code'].should eq(501)
doc.parsed_response['errorNum'].should eq(1470)
cmd = api + "/first"
body = "{ \"collection\" : \"#{@cn}\", \"count\" : 2 }"
doc = ArangoDB.log_put("#{prefix}-first2", cmd, :body => body)
doc.code.should eq(400)
doc.code.should eq(501)
doc.headers['content-type'].should eq("application/json; charset=utf-8")
doc.parsed_response['error'].should eq(true)
doc.parsed_response['code'].should eq(400)
doc.parsed_response['code'].should eq(501)
doc.parsed_response['errorNum'].should eq(1470)
cmd = api + "/last"
body = "{ \"collection\" : \"#{@cn}\" }"
doc = ArangoDB.log_put("#{prefix}-last1", cmd, :body => body)
doc.code.should eq(400)
doc.code.should eq(501)
doc.headers['content-type'].should eq("application/json; charset=utf-8")
doc.parsed_response['error'].should eq(true)
doc.parsed_response['code'].should eq(400)
doc.parsed_response['code'].should eq(501)
doc.parsed_response['errorNum'].should eq(1470)
cmd = api + "/last"
body = "{ \"collection\" : \"#{@cn}\", \"count\" : 2 }"
doc = ArangoDB.log_put("#{prefix}-last2", cmd, :body => body)
doc.code.should eq(400)
doc.code.should eq(501)
doc.headers['content-type'].should eq("application/json; charset=utf-8")
doc.parsed_response['error'].should eq(true)
doc.parsed_response['code'].should eq(400)
doc.parsed_response['code'].should eq(501)
doc.parsed_response['errorNum'].should eq(1470)
end
end

View File

@ -359,10 +359,10 @@ describe ArangoDB do
body = "{ \"collection\" : \"#{@cn}\", \"example\" : { \"value2\" : 99 }, \"limit\" : 5 }"
doc = ArangoDB.log_put("#{prefix}-remove-by-example-limit", cmd, :body => body)
doc.code.should eq(400)
doc.code.should eq(501)
doc.headers['content-type'].should eq("application/json; charset=utf-8")
doc.parsed_response['error'].should eq(true)
doc.parsed_response['code'].should eq(400)
doc.parsed_response['code'].should eq(501)
doc.parsed_response['errorNum'].should eq(1470)
end
end
@ -437,10 +437,10 @@ describe ArangoDB do
body = "{ \"collection\" : \"#{@cn}\", \"example\" : { \"value2\" : 99 }, \"newValue\" : { \"foo\" : \"bar\" }, \"limit\" : 5 }"
doc = ArangoDB.log_put("#{prefix}-replace-by-example-limit", cmd, :body => body)
doc.code.should eq(400)
doc.code.should eq(501)
doc.headers['content-type'].should eq("application/json; charset=utf-8")
doc.parsed_response['error'].should eq(true)
doc.parsed_response['code'].should eq(400)
doc.parsed_response['code'].should eq(501)
doc.parsed_response['errorNum'].should eq(1470)
end
@ -534,10 +534,10 @@ describe ArangoDB do
body = "{ \"collection\" : \"#{@cn}\", \"example\" : { \"value2\" : 99 }, \"newValue\" : { \"foo\" : \"bar\", \"value2\" : 17 }, \"limit\" : 5 }"
doc = ArangoDB.log_put("#{prefix}-update-by-example-limit", cmd, :body => body)
doc.code.should eq(400)
doc.code.should eq(501)
doc.headers['content-type'].should eq("application/json; charset=utf-8")
doc.parsed_response['error'].should eq(true)
doc.parsed_response['code'].should eq(400)
doc.parsed_response['code'].should eq(501)
doc.parsed_response['errorNum'].should eq(1470)
end