These are chat archives for gin-gonic/gin

20th
Mar 2016
Thomas Boerger
@tboerger
Mar 20 2016 08:17
Why is it so difficult to find proper examples how to test gin controllers?
I can't even find examples for CreatwTestContext
Bo-Yi Wu
@appleboy
Mar 20 2016 10:24
Thomas Boerger
@tboerger
Mar 20 2016 11:48
@appleboy that’s not using the test context :) already figured something out on my own. https://github.com/solderapp/solder-api/blob/master/controller/forge_test.go#L43-L46
now i just need to find proper database fixtures/factories to write further tests