diff --git a/UnitTests/HttpInterface/api-http-spec.rb b/UnitTests/HttpInterface/api-http-spec.rb index c79013622b..dbc5c74fbf 100644 --- a/UnitTests/HttpInterface/api-http-spec.rb +++ b/UnitTests/HttpInterface/api-http-spec.rb @@ -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 diff --git a/UnitTests/HttpInterface/run-tests b/UnitTests/HttpInterface/run-tests index 22aebcae51..6e3036802b 100755 --- a/UnitTests/HttpInterface/run-tests +++ b/UnitTests/HttpInterface/run-tests @@ -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 \