+ def test_comment
+ # Create Issue
+ test_new_issue_after_login
+ assert_equal Issue.count, 1
+ @issue = Issue.all.first
+
+ # Login as administrator
+ session[:user] = users(:administrator_user).id
+
+ get :comment, :id => @issue.id, :issue_comment => { :body => "test comment" }
+ assert_response :redirect
+ assert_redirected_to @issue
+
+ # clear session
+ session.delete(:user)
+ end