GitLab wurde erfolgreich aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Danke für Ihre Geduld.

Commit bb1d5902 authored by jplang's avatar jplang

Adds a test for when query is not found.

git-svn-id: https://svn.redmine.org/redmine/trunk@9159 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 4e96f930
......@@ -262,6 +262,11 @@ class IssuesControllerTest < ActionController::TestCase
assert_equal 1, session[:query][:project_id]
end
def test_index_with_invalid_query_id_should_respond_404
get :index, :project_id => 1, :query_id => 999
assert_response 404
end
def test_index_with_cross_project_query_in_session_should_show_project_issues
q = Query.create!(:name => "test", :user_id => 2, :is_public => false, :project => nil)
@request.session[:query] = {:id => q.id, :project_id => 1}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment