diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-29 17:07:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-29 17:07:28 +0000 |
commit | c8b3c8dfec4c768658be5482234c7a05808e6963 (patch) | |
tree | 16862470de00f6ce378d9303eb82cb37c1dd3ab0 /test/integration/admin_test.rb | |
parent | 603e11d7a5aa62f923e7b013cac6c66462131232 (diff) | |
download | redmine-c8b3c8dfec4c768658be5482234c7a05808e6963.tar.gz redmine-c8b3c8dfec4c768658be5482234c7a05808e6963.zip |
Fix: error when posting to projects/add or users/add with no custom_fields parameter.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@675 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/admin_test.rb')
-rw-r--r-- | test/integration/admin_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb index c51dc1bf1..a424247cc 100644 --- a/test/integration/admin_test.rb +++ b/test/integration/admin_test.rb @@ -45,7 +45,11 @@ class AdminTest < ActionController::IntegrationTest get "projects/add" assert_response :success assert_template "projects/add" - post "projects/add", :project => { :name => "blog", :description => "weblog", :identifier => "blog", :is_public => 1} + post "projects/add", :project => { :name => "blog", + :description => "weblog", + :identifier => "blog", + :is_public => 1 }, + 'custom_fields[3]' => 'Beta' assert_redirected_to "admin/projects" assert_equal 'Successful creation.', flash[:notice] |