- # Create Issue against user_id:2
- test_new_issue_after_login
- assert_equal Issue.count, 1
- assert_equal Issue.first.reported_user_id, 2
-
- session[:user] = users(:administrator_user).id
-
- # Find Issue against user_id:2
- get :index, :search_by_user => "test2"
+ # Find Issue against bad_user
+ get :index, :params => { :search_by_user => bad_user.display_name }