Newbie developers might wonder how they can test if their routes are in good conditions. They might not find good examples so I have pasted some examples from my code.
require 'rails_helper' describe 'Routes Spec', type: :routing do describe 'Admin Section' do describe 'Articles Controller' do it "should route 'admin/articles/category', :to => 'articles#add_category'" do expect(post: 'admin/articles/category').to route_to('admin/articles#add_category') end