1
0
Fork 0

some more tests

This commit is contained in:
Jan Steemann 2012-09-27 11:24:49 +02:00
parent bcd521f44f
commit 94a2cb37cd
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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 \