How to test a Controller Concern in Rails 4

You will find many advice telling you to use shared examples and run them in the scope of your included controllers. I personally find it over-killing and prefer to perform unit testing in isolation, then use integration testing to confirm the behavior of my controllers. Method 1: without routing or response testing Create a fake … Read more