mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-04 08:03:23 +00:00
Fixed the assertion (#24186).
git-svn-id: http://svn.redmine.org/redmine/trunk@16084 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
20be00e437
commit
d74bc734f3
@ -84,7 +84,7 @@ class AttachmentTest < ActiveSupport::TestCase
|
||||
def test_shorted_filename_if_too_long
|
||||
file = uploaded_test_file("testfile.txt", "text/plain")
|
||||
file.instance_variable_set('@original_filename', "#{'a'*251}.txt")
|
||||
assert 255, file.original_filename.length
|
||||
assert_equal 255, file.original_filename.length
|
||||
|
||||
a = Attachment.new(:container => Issue.find(1),
|
||||
:file => file,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user