diff options
author | schneems <richard.schneeman@gmail.com> | 2012-12-15 11:36:26 -0600 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2012-12-17 12:41:54 -0600 |
commit | 8a59b873749a88b0f4ed9b80bc3237c88313302c (patch) | |
tree | 797fb13b285873e27f0cb47caab726c6ea635a98 /railties/test | |
parent | 8832313ebb80a3d671a7af7dedf613cfd3ca4d76 (diff) | |
download | rails-8a59b873749a88b0f4ed9b80bc3237c88313302c.tar.gz rails-8a59b873749a88b0f4ed9b80bc3237c88313302c.tar.bz2 rails-8a59b873749a88b0f4ed9b80bc3237c88313302c.zip |
HTML formatting to Rails::InfoController#routes
This PR adds formatting and meta-data to the display of the internal routes. Users can now toggle between showing helpers with the `_path` or _`url` suffix.
There are multiple ways to achieve this, this method uses partials for formatting and meta-data. The partials can be re-used when rendering `routing_error.erb`, though that will need to be in a separate PR.

ATP Railties
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/rails_info_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/rails_info_controller_test.rb b/railties/test/rails_info_controller_test.rb index 08fcddd4bf..a9b237d0a5 100644 --- a/railties/test/rails_info_controller_test.rb +++ b/railties/test/rails_info_controller_test.rb @@ -50,7 +50,7 @@ class InfoControllerTest < ActionController::TestCase test "info controller renders with routes" do get :routes - assert_select 'pre' + assert_response :success end end |