@@ -262,6 +262,11 class IssuesControllerTest < ActionController::TestCase | |||
|
262 | 262 | assert_equal 1, session[:query][:project_id] |
|
263 | 263 | end |
|
264 | 264 | |
|
265 | def test_index_with_invalid_query_id_should_respond_404 | |
|
266 | get :index, :project_id => 1, :query_id => 999 | |
|
267 | assert_response 404 | |
|
268 | end | |
|
269 | ||
|
265 | 270 | def test_index_with_cross_project_query_in_session_should_show_project_issues |
|
266 | 271 | q = Query.create!(:name => "test", :user_id => 2, :is_public => false, :project => nil) |
|
267 | 272 | @request.session[:query] = {:id => q.id, :project_id => 1} |
General Comments 0
You need to be logged in to leave comments.
Login now