This project is archived and is in readonly mode.

#3837 ✓resolved
Santiago Pastorino

[PATCH] Routing Mapper with % interpolation broken on Ruby 1.9.1

Reported by Santiago Pastorino | February 1st, 2010 @ 07:01 PM

ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux] on master

  1) Error:
test_redirect_modulo(TestRoutingMapper):
KeyError: key not found
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:204:in `%'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:204:in `block in redirect'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:211:in `call'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:211:in `block in redirect'
    /home/santiago/.gem/ruby/1.9.1/gems/rack-mount-0.4.5/lib/rack/mount/recognition/route_set.rb:70:in `call'
    /home/santiago/.gem/ruby/1.9.1/gems/rack-mount-0.4.5/lib/rack/mount/recognition/route_set.rb:70:in `block in call'
    /home/santiago/.gem/ruby/1.9.1/gems/rack-mount-0.4.5/lib/rack/mount/recognition/code_generation.rb:97:in `block in recognize'
    /home/santiago/.gem/ruby/1.9.1/gems/rack-mount-0.4.5/lib/rack/mount/recognition/code_generation.rb:73:in `optimized_each'
    /home/santiago/.gem/ruby/1.9.1/gems/rack-mount-0.4.5/lib/rack/mount/recognition/code_generation.rb:96:in `recognize'
    /home/santiago/.gem/ruby/1.9.1/gems/rack-mount-0.4.5/lib/rack/mount/recognition/route_set.rb:65:in `call'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:419:in `call'
    /home/santiago/.gem/ruby/1.9.1/gems/rack-test-0.5.3/lib/rack/mock_session.rb:30:in `request'
    /home/santiago/.gem/ruby/1.9.1/gems/rack-test-0.5.3/lib/rack/test.rb:207:in `process_request'
    /home/santiago/.gem/ruby/1.9.1/gems/rack-test-0.5.3/lib/rack/test.rb:105:in `request'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/testing/integration.rb:272:in `process'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/testing/integration.rb:30:in `get'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/testing/integration.rb:315:in `block (2 levels) in '
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/test/dispatch/routing_test.rb:233:in `block in test_redirect_modulo'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/test/dispatch/routing_test.rb:719:in `with_test_routes'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/test/dispatch/routing_test.rb:232:in `test_redirect_modulo'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:64:in `block in run'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/callbacks.rb:432:in `_run_setup_callbacks'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run'

Finished in 31.398957851 seconds.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Referenced by

Pages