Skip to main content

Writing Tests for Rack Middleware Discussion

General • Asked by Chris Oliver

Fantastic job on this video.  It was a great overview of a slightly more complex use of testing which I always appreciate.

Chris, nice video! 
But one thing is missing here, on the large app with a lot of tests passing script_name to the paths is cumbersome, helper need to be extracted that enables you to write 
visit posts_url
instead of
visit posts_url(script_name...)

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.