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__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class RoutingTest < ActionController::IntegrationTest
|
class RoutingTest < ActionController::IntegrationTest
|
||||||
context "activities" do
|
def test_activities
|
||||||
should_route :get, "/activity", :controller => 'activities', :action => 'index', :id => nil
|
assert_routing(
|
||||||
should_route :get, "/activity.atom", :controller => 'activities', :action => 'index', :id => nil, :format => 'atom'
|
{ :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
|
end
|
||||||
|
|
||||||
context "attachments" do
|
context "attachments" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user