diegogub / aranGO

Golang driver for ArangoDB
Apache License 2.0
125 stars 31 forks source link

Added `save` and `FetchOne` tests #7

Closed abijr closed 9 years ago

abijr commented 9 years ago

I ran go fmt on the simple_test.go (hope you don't mind, if you do, I'll fix my format to match yours), and added save and FetchOne tests. Also added the create database function (so that we don't need to manually create database).

FetchOne isn't working, it correctly sends the request and it's getting a correct answer, but it is not marshalling the results.

Edit: FetchOne now works in the tests (my bad).

Also, should I defer a delete database, for cleanup?

P.S.: I'm completely open to comments on everything, don't mind me.

abijr commented 9 years ago

Just noticed, should I pull request this to the 'dev' branch?

diegogub commented 9 years ago

hello @abijr , I will merge it to master. But next It would be clener to merge to dev first. thanks!