```ruby
require 'bundler/setup'
require 'test/unit'
require 'mocha/setup'
require 'active_support'
require 'action_controller'

if ActiveSupport::VERSION::MAJOR > 3
  require 'active_support/testing/autorun'
end

require File.dirname(__FILE__) + '/../lib/action_controller/verification'

SharedTestRoutes = ActionDispatch::Routing::RouteSet.new
SharedTestRoutes.draw do
  match ":controller(/:action(/:id))"
end

ActionController::Base.send :include, SharedTestRoutes.url_helpers

module ActionController
  class TestCase
    setup { @routes = SharedTestRoutes }
  end
end
```

Use :via option to suppress an error
user
```ruby
require 'bundler/setup'
require 'test/unit'
require 'mocha/setup'
require 'active_support'
require 'action_controller'

if ActiveSupport::VERSION::MAJOR > 3
  require 'active_support/testing/autorun'
end

require File.dirname(__FILE__) + '/../lib/action_controller/verification'

SharedTestRoutes = ActionDispatch::Routing::RouteSet.new
SharedTestRoutes.draw do
  match ":controller(/:action(/:id))", :via => :all
end

ActionController::Base.send :include, SharedTestRoutes.url_helpers

module ActionController
  class TestCase
    setup { @routes = SharedTestRoutes }
  end
end
```
assistant