Request tests
beauby opened this issue · 4 comments
beauby commented
Any plan to support request tests with Hanami? (sequences of black-box request-response cycles going through the whole Hanami app including middlewares)
davydovanton commented
Hello @beauby, I open for any ideas and that's why yes, why not. Do you have any ideas how we can do it?
beauby commented
Here is a little helper I threw together last night: https://gist.github.com/beauby/fe02ecd48f68bcaa11033e08445af36f (I then heard about the Rack::Test
gem, which does pretty much the same thing, but is not maintained anymore).
davydovanton commented
interesting. I'll try to implement this as soon as possible. Thanks!
davydovanton commented
Thanks, I created this. Now you can use request helpers in tests 🎉