From b5e82d99efb073eeb240f8065b2271c2a5ebccdd Mon Sep 17 00:00:00 2001 From: Aditya Kapoor Date: Sun, 27 Sep 2015 12:49:20 +0530 Subject: Add missing routing tests for info controller Vaguely related to #21605 where I proposed to remove index route since it was redirecting to the 'routes' action, but this was kept so I thought it made sense to add some tests regarding this. --- railties/test/application/routing_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb index cbada6be97..cacae13a9b 100644 --- a/railties/test/application/routing_test.rb +++ b/railties/test/application/routing_test.rb @@ -21,6 +21,12 @@ module ApplicationTests assert_equal 200, last_response.status end + test "rails/info in development" do + app("development") + app "/rails/info" + assert_equal 302, last_response.status + end + test "rails/info/routes in development" do app("development") get "/rails/info/routes" @@ -63,6 +69,12 @@ module ApplicationTests assert_equal 404, last_response.status end + test "rails/info in production" do + app("production") + get "/rails/info" + assert_equal 404, last_response.status + end + test "rails/info/routes in production" do app("production") get "/rails/info/routes" -- cgit v1.2.3