Move more routing tests into the routing integration test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3686 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1288,13 +1288,6 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
assert_not_nil assigns(:notes)
|
||||
end
|
||||
|
||||
def test_auto_complete_routing
|
||||
assert_routing(
|
||||
{:method => :get, :path => '/issues/auto_complete'},
|
||||
:controller => 'issues', :action => 'auto_complete'
|
||||
)
|
||||
end
|
||||
|
||||
def test_auto_complete_should_not_be_case_sensitive
|
||||
get :auto_complete, :project_id => 'ecookbook', :q => 'ReCiPe'
|
||||
assert_response :success
|
||||
@@ -1309,13 +1302,6 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
assert assigns(:issues).include?(Issue.find(13))
|
||||
end
|
||||
|
||||
def test_destroy_routing
|
||||
assert_recognizes( #TODO: use DELETE on issue URI (need to change forms)
|
||||
{:controller => 'issues', :action => 'destroy', :id => '1'},
|
||||
{:method => :post, :path => '/issues/1/destroy'}
|
||||
)
|
||||
end
|
||||
|
||||
def test_destroy_issue_with_no_time_entries
|
||||
assert_nil TimeEntry.find_by_issue_id(2)
|
||||
@request.session[:user_id] = 2
|
||||
|
||||
Reference in New Issue
Block a user