aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_test.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-02-25 20:14:14 +0900
committerkennyj <kennyj@gmail.com>2012-02-25 20:14:14 +0900
commitfd5a298a7336467b5da640c0156a469dd1c712e1 (patch)
tree9fe2e76845a673bb8e40ccd960d452e7042166de /actionpack/test/dispatch/routing_test.rb
parent97df6f38c9f5b99f3ec55d25185c8d8391886b1e (diff)
downloadrails-fd5a298a7336467b5da640c0156a469dd1c712e1.tar.gz
rails-fd5a298a7336467b5da640c0156a469dd1c712e1.tar.bz2
rails-fd5a298a7336467b5da640c0156a469dd1c712e1.zip
Remove wrong and redundant code.
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r--actionpack/test/dispatch/routing_test.rb10
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