Permalink
Browse files

Merge pull request #5163 from kennyj/fix_5119

Remove wrong and redundant code.
  • Loading branch information...
2 parents 97df6f3 + fd5a298 commit 862e27fbbb31923c1e56b669914b24a3073674b4 @josevalim josevalim committed Feb 25, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 actionpack/test/dispatch/routing_test.rb
@@ -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

0 comments on commit 862e27f

Please sign in to comment.