Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#3837

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.

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

State: resolved
Milestone: none
Assigned to: José Valim José Valim
Importance: Low