mirror of https://gitee.com/bigwinds/arangodb
some more tests
This commit is contained in:
parent
bcd521f44f
commit
94a2cb37cd
|
@ -88,10 +88,14 @@ describe ArangoDB do
|
|||
################################################################################
|
||||
|
||||
context "get requests" do
|
||||
before do
|
||||
end
|
||||
it "checks a non-existing URL" do
|
||||
cmd = "/xxxx/yyyy"
|
||||
doc = ArangoDB.log_get("#{prefix}-get-non-existing-url", cmd)
|
||||
|
||||
after do
|
||||
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(501)
|
||||
end
|
||||
|
||||
it "checks whether GET returns a body" do
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
test -d logs || mkdir logs
|
||||
|
||||
rspec --format d \
|
||||
api-batch-spec.rb \
|
||||
api-http-spec.rb \
|
||||
api-batch-spec.rb \
|
||||
api-collection-spec.rb \
|
||||
rest-create-document-spec.rb \
|
||||
rest-read-document-spec.rb \
|
||||
|
|
Loading…
Reference in New Issue