##// END OF EJS Templates
Fixed error on project creation due to unrecognized route....
Jean-Philippe Lang -
r8072:f9b6e57d24be
parent child
Show More
@@ -29,7 +29,7 class ProjectsController < ApplicationController
29
29
30 after_filter :only => [:create, :edit, :update, :archive, :unarchive, :destroy] do |controller|
30 after_filter :only => [:create, :edit, :update, :archive, :unarchive, :destroy] do |controller|
31 if controller.request.post?
31 if controller.request.post?
32 controller.send :expire_action, :controller => 'welcome', :action => 'robots.txt'
32 controller.send :expire_action, :controller => 'welcome', :action => 'robots'
33 end
33 end
34 end
34 end
35
35
@@ -415,6 +415,10 class RoutingTest < ActionController::IntegrationTest
415 should_route :post, "/versions/1/status_by", :controller => 'versions', :action => 'status_by', :id => '1'
415 should_route :post, "/versions/1/status_by", :controller => 'versions', :action => 'status_by', :id => '1'
416 end
416 end
417
417
418 context "welcome" do
419 should_route :get, "/robots.txt", :controller => 'welcome', :action => 'robots'
420 end
421
418 context "wiki (singular, project's pages)" do
422 context "wiki (singular, project's pages)" do
419 should_route :get, "/projects/567/wiki", :controller => 'wiki', :action => 'show', :project_id => '567'
423 should_route :get, "/projects/567/wiki", :controller => 'wiki', :action => 'show', :project_id => '567'
420 should_route :get, "/projects/567/wiki/lalala", :controller => 'wiki', :action => 'show', :project_id => '567', :id => 'lalala'
424 should_route :get, "/projects/567/wiki/lalala", :controller => 'wiki', :action => 'show', :project_id => '567', :id => 'lalala'
General Comments 0
You need to be logged in to leave comments. Login now