title: How can i run "rails routes --expanded" exclusively in Rails6 Test Environment?
body: <p>Below details are in reference of Rails 6.</p>
  <p>I have created category controller using scaffold in the <strong>test environment</strong>. I want to crosscheck all the routes and its URI using <code>rails routes --expanded</code> for test environment.
  How can i do that?
  As to run that command directly in terminal will give routes of development environment.</p>
  <p>I have already checked <code>rails console -e test</code> but its exclusively for irb of test env.</p>