summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-07 16:21:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-07 16:21:59 +0000
commit730bba8130ba72d6c6d01edc5712169068d67ba7 (patch)
tree6b2d15f302dc717f36065ba0b8aa1a5d14c0b7af /test
parent0965aafd51bb3cd0284f3e31e566b53574a87dd6 (diff)
downloadredmine-730bba8130ba72d6c6d01edc5712169068d67ba7.tar.gz
redmine-730bba8130ba72d6c6d01edc5712169068d67ba7.zip
Fixed undefined method `compact!' error when additional_user_ids is empty (#19253).
git-svn-id: http://svn.redmine.org/redmine/trunk@14053 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/repositories_controller_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb
index 3e0fa5963..056375ca8 100644
--- a/test/functional/repositories_controller_test.rb
+++ b/test/functional/repositories_controller_test.rb
@@ -279,6 +279,15 @@ class RepositoriesControllerTest < ActionController::TestCase
assert_select 'input[value=foo] + select option[selected=selected]', 0 # no option selected
end
+ def test_get_committers_without_changesets
+ Changeset.delete_all
+ @request.session[:user_id] = 2
+
+ get :committers, :id => 10
+ assert_response :success
+ assert_template 'committers'
+ end
+
def test_post_committers
@request.session[:user_id] = 2
# add a commit with an unknown user