diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-15 22:49:03 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-15 22:49:03 +0000 |
commit | 84dd4ecbd4a0b5639eda9875306db6b501aba161 (patch) | |
tree | 2f75d5cf71ca3d2d3ac405010d4ae2420fe82255 /test/integration | |
parent | f7618160ad0178b4ce2eb624cd0771acad227887 (diff) | |
download | redmine-84dd4ecbd4a0b5639eda9875306db6b501aba161.tar.gz redmine-84dd4ecbd4a0b5639eda9875306db6b501aba161.zip |
route: split issue preview route to adding and editing
"No route matches" error raises in "preview_issue_path"
at app/views/issues/new.html.erb:35 on Rails 3.0.11 and Rails 3.1.3 new route format.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8886 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/routing/previews_test.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/integration/routing/previews_test.rb b/test/integration/routing/previews_test.rb index 52799253d..9e280f16e 100644 --- a/test/integration/routing/previews_test.rb +++ b/test/integration/routing/previews_test.rb @@ -21,8 +21,12 @@ class RoutingPreviewsTest < ActionController::IntegrationTest def test_previews ["get", "post"].each do |method| assert_routing( - { :method => method, :path => "/issues/preview/123" }, - { :controller => 'previews', :action => 'issue', :id => '123' } + { :method => method, :path => "/issues/preview/new/123" }, + { :controller => 'previews', :action => 'issue', :project_id => '123' } + ) + assert_routing( + { :method => method, :path => "/issues/preview/edit/321" }, + { :controller => 'previews', :action => 'issue', :id => '321' } ) end assert_routing( |