Routes Testing in Rails

Everyone is familiar with routes in rails been a Rails developer we add and edit config/routes.rb many time throughout our application.But let get it straight how many of us actually write test for routes that we define.I guess hardly anyone does I too used to avoid writing it until I found out how easy and fun it is to write route test. So let me show you A Routes Test has basically 3 parts 1. assert_generate 2. assert_recognizes 3. assert_routing

Continue Reading

Site Footer