         location:
           type: GeoPoint
       }, {
-        options:
-          arangodb:
-            collection: 'Complex'
+        arangodb:
+          collection: 'Complex'
       }
 
     describe 'connection generator:', () ->

      lat = chance.latitude()
      lng = chance.longitude()

      toDB = {
        name:
          first: firstName
          last: lastName

        done()

      it 'should create an connection using only the "url" property, considers other non-connection settings', (done) ->
        settings =
          url: 'http://rightUser:rightPassword@right_host:32768/rightDatabase'
          promise: true

        expectedConnObj =
          url: 'http://rightUser:rightPassword@right_host:32768'
          databaseName: 'rightDatabase'
          promise: true


        connObj = arangodb.generateConnObject settings
        connObj.should.eql expectedConnObj
        done()

      it 'should create an connection using the connection settings when url is not set', (done) ->

        settings = require('rc')('loopback').test.arangodb

        settings =
          host: 'right_host'
          port: 32768
          database: 'rightDatabase'
          username: 'rightUser'
          password: 'rightPassword'
          promise: true

        expectedConnObj =
          url: 'http://rightUser:rightPassword@right_host:32768'
          databaseName: 'rightDatabase'
          promise: true


        connObj = arangodb.generateConnObject settings
        connObj.should.eql expectedConnObj
