##// END OF EJS Templates
code layout clean up of test_errors_full_messages_should_include_custom_fields_errors at test/unit/issue_test.rb...
Toshi MARUYAMA -
r7353:f7bdf375cd7b
parent child
Show More
@@ -185,7 +185,9 class IssueTest < ActiveSupport::TestCase
185 def test_errors_full_messages_should_include_custom_fields_errors
185 def test_errors_full_messages_should_include_custom_fields_errors
186 field = IssueCustomField.find_by_name('Database')
186 field = IssueCustomField.find_by_name('Database')
187
187
188 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')
188 issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 1,
189 :status_id => 1, :subject => 'test_create',
190 :description => 'IssueTest#test_create_with_required_custom_field')
189 assert issue.available_custom_fields.include?(field)
191 assert issue.available_custom_fields.include?(field)
190 # Invalid value
192 # Invalid value
191 issue.custom_field_values = { field.id => 'SQLServer' }
193 issue.custom_field_values = { field.id => 'SQLServer' }
General Comments 0
You need to be logged in to leave comments. Login now