##// END OF EJS Templates
code layout clean up of test_create_with_required_custom_field at test/unit/issue_test.rb...
Toshi MARUYAMA -
r7354:d0ef8f25c4c2
parent child
Show More
@@ -45,7 +45,9 class IssueTest < ActiveSupport::TestCase
45 field = IssueCustomField.find_by_name('Database')
45 field = IssueCustomField.find_by_name('Database')
46 field.update_attribute(:is_required, true)
46 field.update_attribute(:is_required, true)
47
47
48 issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1, :status_id => 1, :subject => 'test_create', :description => 'IssueTest#test_create_with_required_custom_field')
48 issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1,
49 :status_id => 1, :subject => 'test_create',
50 :description => 'IssueTest#test_create_with_required_custom_field')
49 assert issue.available_custom_fields.include?(field)
51 assert issue.available_custom_fields.include?(field)
50 # No value for the custom field
52 # No value for the custom field
51 assert !issue.save
53 assert !issue.save
General Comments 0
You need to be logged in to leave comments. Login now