@@ -92,7 +92,7 class RepositoriesController < ApplicationController | |||
|
92 | 92 | |
|
93 | 93 | def committers |
|
94 | 94 | @committers = @repository.committers |
|
95 | @users = @project.users | |
|
95 | @users = @project.users.to_a | |
|
96 | 96 | additional_user_ids = @committers.collect(&:last).collect(&:to_i) - @users.collect(&:id) |
|
97 | 97 | @users += User.where(:id => additional_user_ids).to_a unless additional_user_ids.empty? |
|
98 | 98 | @users.compact! |
@@ -279,6 +279,15 class RepositoriesControllerTest < ActionController::TestCase | |||
|
279 | 279 | assert_select 'input[value=foo] + select option[selected=selected]', 0 # no option selected |
|
280 | 280 | end |
|
281 | 281 | |
|
282 | def test_get_committers_without_changesets | |
|
283 | Changeset.delete_all | |
|
284 | @request.session[:user_id] = 2 | |
|
285 | ||
|
286 | get :committers, :id => 10 | |
|
287 | assert_response :success | |
|
288 | assert_template 'committers' | |
|
289 | end | |
|
290 | ||
|
282 | 291 | def test_post_committers |
|
283 | 292 | @request.session[:user_id] = 2 |
|
284 | 293 | # add a commit with an unknown user |
General Comments 0
You need to be logged in to leave comments.
Login now