Skip to main content

Subscribe to GoRails to get access to this episode and all other pro episodes, and new awesome content every month.

Subscribe Now
Only $19/month

Unlimited access. Cancel anytime.

14

Writing Tests for Rack Middleware

Episode 241 · April 24, 2018

In this episode, we add tests for our Basecamp 3 style urls that we built using a Rack middleware

Testing Routes Rails 5.2


Transcripts

No transcripts available. Earn a free month

Discussion


Fallback
Great video Chris. 

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

Fallback

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.