Refactor: Move the rest of the routing tests to RoutingTest.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3687 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -25,13 +25,6 @@ class IssueRelationsControllerTest < ActionController::TestCase
|
||||
User.current = nil
|
||||
end
|
||||
|
||||
def test_new_routing
|
||||
assert_routing(
|
||||
{:method => :post, :path => '/issues/1/relations'},
|
||||
{:controller => 'issue_relations', :action => 'new', :issue_id => '1'}
|
||||
)
|
||||
end
|
||||
|
||||
def test_new
|
||||
assert_difference 'IssueRelation.count' do
|
||||
@request.session[:user_id] = 3
|
||||
@@ -69,13 +62,6 @@ class IssueRelationsControllerTest < ActionController::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_destroy_routing
|
||||
assert_recognizes( #TODO: use DELETE on issue URI
|
||||
{:controller => 'issue_relations', :action => 'destroy', :issue_id => '1', :id => '23'},
|
||||
{:method => :post, :path => '/issues/1/relations/23/destroy'}
|
||||
)
|
||||
end
|
||||
|
||||
def test_destroy
|
||||
assert_difference 'IssueRelation.count', -1 do
|
||||
@request.session[:user_id] = 3
|
||||
|
||||
Reference in New Issue
Block a user