Sync with latest Instiki trunk. Changes:
1) Upgrade Rails to 1.2.3 2) Revert RedCloth to previous version (who %#$@ cares?) 3) Preserve the Rails Security fix to vendor/rails/actionpack/lib/action_controller/caching.rb from Revision 80.
This commit is contained in:
parent
ff3e03a45a
commit
7adac51d6d
68 changed files with 466 additions and 257 deletions
|
@ -1717,6 +1717,17 @@ class RouteSetTest < Test::Unit::TestCase
|
|||
)
|
||||
end
|
||||
|
||||
def test_query_params_will_be_shown_when_recalled
|
||||
set.draw do |map|
|
||||
map.connect 'show_post/:parameter', :controller => 'post', :action => 'show'
|
||||
map.connect ':controller/:action/:id'
|
||||
end
|
||||
assert_equal '/post/edit?parameter=1', set.generate(
|
||||
{:action => 'edit', :parameter => 1},
|
||||
{:controller => 'post', :action => 'show', :parameter => 1}
|
||||
)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class RoutingTest < Test::Unit::TestCase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue