+ assert_redirected_to root_path
+
+ # Resolve issue as administrator
+ session[:user] = create(:administrator_user).id
+ get :resolve, :params => { :id => issue.id }
+ assert_response :redirect
+ assert_equal true, issue.reload.resolved?
+
+ issue.reopen!
+
+ # Resolve issue as moderator
+ session[:user] = create(:moderator_user).id
+ get :resolve, :params => { :id => issue.id }
+ assert_response :redirect
+ assert_equal true, issue.reload.resolved?