diff options
author | kennyj <kennyj@gmail.com> | 2012-02-25 20:14:14 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-02-25 20:14:14 +0900 |
commit | fd5a298a7336467b5da640c0156a469dd1c712e1 (patch) | |
tree | 9fe2e76845a673bb8e40ccd960d452e7042166de /actionpack | |
parent | 97df6f38c9f5b99f3ec55d25185c8d8391886b1e (diff) | |
download | rails-fd5a298a7336467b5da640c0156a469dd1c712e1.tar.gz rails-fd5a298a7336467b5da640c0156a469dd1c712e1.tar.bz2 rails-fd5a298a7336467b5da640c0156a469dd1c712e1.zip |
Remove wrong and redundant code.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 10 |
1 files 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 |