Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #1582 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

assert_routing fails on modules

Reported by: rick Assigned to: ulysses
Priority: normal Milestone:
Component: ActionPack Version: 0.12.1
Severity: normal Keywords:
Cc:

Description

If I have Module::ExampleController, assert_routing calls fail.

assert_routing "module/example",  { :controller => 'module/example', :action => 'index' }

yields:

The generated path <"/module/module/example"> did not match <"/module/example">

and:

assert_routing "module/example",  { :controller => 'example', :action => 'index' }

yields:

The recognized options <{"action"=>"index", "controller"=>"module/example"}> did not match <{"action"=>"index", "controller"=>"example"}>

Attachments

1608_assert_routing_tests.diff (3.0 kB) - added by rick on 07/02/05 17:02:34.
created example test, refactored out fake_controllers.rb as recommended in routing_test.rb

Change History

07/02/05 17:02:34 changed by rick

  • attachment 1608_assert_routing_tests.diff added.

created example test, refactored out fake_controllers.rb as recommended in routing_test.rb

07/15/05 15:02:03 changed by ulysses

  • status changed from new to closed.
  • resolution set to fixed.

Fixed by [1837] (Thanks for the tests.)