From fd5a298a7336467b5da640c0156a469dd1c712e1 Mon Sep 17 00:00:00 2001 From: kennyj Date: Sat, 25 Feb 2012 20:14:14 +0900 Subject: Remove wrong and redundant code. --- actionpack/test/dispatch/routing_test.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index eb495d30e5..700666600b 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -2413,12 +2413,10 @@ end class TestTildeAndMinusPaths < ActionDispatch::IntegrationTest Routes = ActionDispatch::Routing::RouteSet.new.tap do |app| app.draw do - match "/~user" => lambda { |env| - [200, { 'Content-Type' => 'text/plain' }, []] - }, :as => :tilde_path - match "/young-and-fine" => lambda { |env| - [200, { 'Content-Type' => 'text/plain' }, []] - }, :as => :tilde_path + ok = lambda { |env| [200, { 'Content-Type' => 'text/plain' }, []] } + + match "/~user" => ok + match "/young-and-fine" => ok end end -- cgit v1.2.3