From 7cea286c2344ee20560437c4a785bf2ce2b9091f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 15 Dec 2008 18:02:25 +0000 Subject: Fixes repository user mapping submission when a repository username is blank (#2339, Conflicting types for parameter containers). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2137 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/functional/repositories_controller_test.rb') diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb index 4bb9c3fa3..972c57e00 100644 --- a/test/functional/repositories_controller_test.rb +++ b/test/functional/repositories_controller_test.rb @@ -73,12 +73,12 @@ class RepositoriesControllerTest < Test::Unit::TestCase assert_tag :td, :content => 'dlopper', :sibling => { :tag => 'td', - :child => { :tag => 'select', :attributes => { :name => 'committers[dlopper]' }, + :child => { :tag => 'select', :attributes => { :name => %r{^committers\[\d+\]\[\]$} }, :child => { :tag => 'option', :content => 'Dave Lopper', :attributes => { :value => '3', :selected => 'selected' }}}} assert_tag :td, :content => 'foo', :sibling => { :tag => 'td', - :child => { :tag => 'select', :attributes => { :name => 'committers[foo]' }}} + :child => { :tag => 'select', :attributes => { :name => %r{^committers\[\d+\]\[\]$} }}} assert_no_tag :td, :content => 'foo', :sibling => { :tag => 'td', :descendant => { :tag => 'option', :attributes => { :selected => 'selected' }}} @@ -90,7 +90,7 @@ class RepositoriesControllerTest < Test::Unit::TestCase c = Changeset.create!(:repository => Project.find(1).repository, :committer => 'foo', :committed_on => Time.now, :revision => 100, :comments => 'Committed by foo.') assert_no_difference "Changeset.count(:conditions => 'user_id = 3')" do - post :committers, :id => 1, :committers => { 'foo' => '2', 'dlopper' => '3'} + post :committers, :id => 1, :committers => { '0' => ['foo', '2'], '1' => ['dlopper', '3']} assert_redirected_to '/repositories/committers/ecookbook' assert_equal User.find(2), c.reload.user end -- cgit v1.2.3