aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2012-12-15 11:36:26 -0600
committerschneems <richard.schneeman@gmail.com>2012-12-17 12:41:54 -0600
commit8a59b873749a88b0f4ed9b80bc3237c88313302c (patch)
tree797fb13b285873e27f0cb47caab726c6ea635a98 /railties/test
parent8832313ebb80a3d671a7af7dedf613cfd3ca4d76 (diff)
downloadrails-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. ![](http://f.cl.ly/items/3A2p3c1T1t2f2X2R2K2S/Screen%20Shot%202012-12-12%20at%202.28.01%20PM.png) ATP Railties
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/rails_info_controller_test.rb2
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