Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove wrong and redundant code.

  • Loading branch information...
commit fd5a298a7336467b5da640c0156a469dd1c712e1 1 parent 97df6f3
Toshinori Kajihara kennyj authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 actionpack/test/dispatch/routing_test.rb
10 actionpack/test/dispatch/routing_test.rb
View
@@ -2413,12 +2413,10 @@ def app; Routes 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
Please sign in to comment.
Something went wrong with that request. Please try again.