summaryrefslogtreecommitdiffstats
path: root/test/integration/issues_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-20 21:29:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-20 21:29:51 +0000
commitd6bfb7fa4da4068c3e64f3fce16574de56fd72e9 (patch)
treeeec2bb152a3d5aa0782563baa38c59e170d1ea9c /test/integration/issues_test.rb
parent59c5d995c339f726f7c6249d543a2b2a2a7bc061 (diff)
downloadredmine-d6bfb7fa4da4068c3e64f3fce16574de56fd72e9.tar.gz
redmine-d6bfb7fa4da4068c3e64f3fce16574de56fd72e9.zip
Added default value for custom fields. Fixed javascript on custom field form for project and user custom fields.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1090 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/issues_test.rb')
-rw-r--r--test/integration/issues_test.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index 81d27c30f..7249ed3da 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -1,7 +1,16 @@
require "#{File.dirname(__FILE__)}/../test_helper"
class IssuesTest < ActionController::IntegrationTest
- fixtures :projects, :users, :trackers, :issue_statuses, :issues, :enumerations
+ fixtures :projects,
+ :users,
+ :trackers,
+ :projects_trackers,
+ :issue_statuses,
+ :issues,
+ :enumerations,
+ :custom_fields,
+ :custom_values,
+ :custom_fields_trackers
# create an issue
def test_add_issue
@@ -18,7 +27,8 @@ class IssuesTest < ActionController::IntegrationTest
:description => "new issue",
:done_ratio => "0",
:due_date => "",
- :assigned_to_id => "" }
+ :assigned_to_id => "" },
+ :custom_fields => {'2' => 'Value for field 2'}
# find created issue
issue = Issue.find_by_subject("new test issue")
assert_kind_of Issue, issue