Fixed: custom field selection is not saved when unchecking them all on project settings

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1083 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-01-20 14:01:02 +00:00
parent 889bf388be
commit d79c20c4f2
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -71,7 +71,8 @@ class ProjectsControllerTest < Test::Unit::TestCase
def test_edit
@request.session[:user_id] = 2 # manager
post :edit, :id => 1, :project => {:name => 'Test changed name'}
post :edit, :id => 1, :project => {:name => 'Test changed name',
:custom_field_ids => ['']}
assert_redirected_to 'projects/settings/ecookbook'
project = Project.find(1)
assert_equal 'Test changed name', project.name