This project is archived and is in readonly mode.

#3715 ✓resolved
Santiago Pastorino

[PATCH] actionpack route_set tests failing on ruby1.9.1p376

Reported by Santiago Pastorino | January 16th, 2010 @ 10:42 PM | in 3.0.2


santiago@debian:~/Documentos/WyeWorks/Proys/rails/actionpack$ rake test
(in /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack)
/home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:144:in `module_eval': /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:145: syntax error, unexpected '[', expecting ';' or '\n' (SyntaxError)
              def hash_for_[:projects]s_url(options = nil...
                            ^
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:144:in `define_hash_access'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:135:in `block in define_named_route_methods'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:133:in `each'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:133:in `define_named_route_methods'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:84:in `add'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:317:in `add_route'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:177:in `match'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:305:in `match'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:584:in `match'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:560:in `match'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:229:in `map_method'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:184:in `get'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:489:in `block (3 levels) in resources'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:617:in `with_scope_level'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:488:in `block (2 levels) in resources'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:617:in `with_scope_level'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:485:in `block in resources'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:270:in `scope'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:484:in `resources'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:470:in `block in resources'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:270:in `scope'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:469:in `resources'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/test/dispatch/routing_test.rb:56:in `block (3 levels) in '
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/mapper.rb:270:in `scope'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/test/dispatch/routing_test.rb:55:in `block (2 levels) in '
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:249:in `instance_exec'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/routing/route_set.rb:249:in `draw'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/test/dispatch/routing_test.rb:17:in `block in '
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/test/abstract_unit.rb:116:in `stub_controllers'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/test/dispatch/routing_test.rb:15:in `'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/test/dispatch/routing_test.rb:4:in `'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/dependencies.rb:156:in `load'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/dependencies.rb:156:in `block in load_with_new_constant_marking'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/dependencies.rb:537:in `new_constants_in'
    from /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/dependencies.rb:156:in `load_with_new_constant_marking'
    from /usr/lib/ruby1.9.1/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `block in '
    from /usr/lib/ruby1.9.1/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each'
    from /usr/lib/ruby1.9.1/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `'
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.9.1 -I"lib:test" "/usr/lib/...]

(See full trace by running task with --trace)

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>

Attachments

Referenced by

Pages