Fixes #820: invalid project id causes a NoMethodError in SearchController (Angel Dobbs-Sciortino).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1237 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-03-12 20:50:48 +00:00
parent 3a9b0988c7
commit d4429a544c
3 changed files with 19 additions and 10 deletions
@@ -78,6 +78,12 @@ class SearchControllerTest < Test::Unit::TestCase
assert_equal 2, results.size
end
def test_search_with_invalid_project_id
get :index, :id => 195, :q => 'recipe'
assert_response 404
assert_nil assigns(:results)
end
def test_quick_jump_to_issue
# issue of a public project
get :index, :q => "3"