test: replace "should_route" of "activities" to "assert_routing" at integration/routing_test.rb
shoulda 2.11.3 does not support Rails2 legacy route on Rails 3.0.11. <pre> Error: test: wikis (plural, admin setup) should route POST /projects/ladida/wiki/destroy to/from {:action=>"destroy", :id=>"ladida", :controller=>"wikis"}. (RoutingTest): NameError: uninitialized constant Routing </pre> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8201 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7d501eaf81
commit
0b4aed008c
|
@ -18,9 +18,15 @@
|
|||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class RoutingTest < ActionController::IntegrationTest
|
||||
context "activities" do
|
||||
should_route :get, "/activity", :controller => 'activities', :action => 'index', :id => nil
|
||||
should_route :get, "/activity.atom", :controller => 'activities', :action => 'index', :id => nil, :format => 'atom'
|
||||
def test_activities
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/activity" },
|
||||
{ :controller => 'activities', :action => 'index', :id => nil }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/activity.atom" },
|
||||
{ :controller => 'activities', :action => 'index', :id => nil, :format => 'atom' }
|
||||
)
|
||||
end
|
||||
|
||||
context "attachments" do
|
||||
|
|
Loading…
Reference in New Issue