Methods
T
Instance Public methods
test_regexp_should_only_match_possible_controllers()
# File rails/actionpack/test/controller/routing_test.rb, line 785
def test_regexp_should_only_match_possible_controllers
  ActionController::Routing.with_controllers %w(admin/accounts admin/users account pages) do
    cs = ROUTING::ControllerSegment.new :controller
    regexp = %r{\A#{cs.regexp_chunk}\Z}
    
    ActionController::Routing.possible_controllers.each do |name|
      assert_match regexp, name
      assert_no_match regexp, "#{name}_fake"
      
      match = regexp.match name
      assert_equal name, match[1]
    end
  end
end