Skip to content
This repository
Browse code

Merge pull request #6481 from schneems/schneems/sextant-routes

Remove Unnecessary Test from route_inspect_test
  • Loading branch information...
commit 641ab7cedfea24e2309dbf1d92ea2cbc26f5c8ed 2 parents d476129 + 4459125
Rafael Mendonça França authored May 24, 2012
9  railties/test/application/route_inspect_test.rb
@@ -164,14 +164,5 @@ def test_redirect
164 164
       assert_equal "   bar GET /bar(.:format)    redirect(307, path: /foo/bar)", output[1]
165 165
       assert_equal "foobar GET /foobar(.:format) redirect(301)", output[2]
166 166
     end
167  
-
168  
-    def test_presenter
169  
-      output = draw do
170  
-        get "/foo"    => redirect("/foo/bar"), :constraints => { :subdomain => "admin" }
171  
-        get "/bar"    => redirect(path: "/foo/bar", status: 307)
172  
-        get "/foobar" => redirect{ "/foo/bar" }
173  
-      end
174  
-      assert_equal output.join("\n"), Rails::Application::RoutePresenter.display_routes(@set.routes)
175  
-    end
176 167
   end
177 168
 end

0 notes on commit 641ab7c

Please sign in to comment.
Something went wrong with that request. Please try again.