@@ -83,7 +83,6 class AttachmentTest < ActiveSupport::TestCase | |||||
83 |
|
83 | |||
84 | def test_shorted_filename_if_too_long |
|
84 | def test_shorted_filename_if_too_long | |
85 | file = mock_file_with_options(:original_filename => "#{'a'*251}.txt") |
|
85 | file = mock_file_with_options(:original_filename => "#{'a'*251}.txt") | |
86 | assert_equal 255, file.original_filename.length |
|
|||
87 |
|
86 | |||
88 | a = Attachment.new(:container => Issue.find(1), |
|
87 | a = Attachment.new(:container => Issue.find(1), | |
89 | :file => file, |
|
88 | :file => file, |
General Comments 0
You need to be logged in to leave comments.
Login now