diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-16 08:47:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-16 08:47:37 +0000 |
commit | d74bc734f315ddad333477f2d8b71e33051b6278 (patch) | |
tree | 3a7ca81d3d8ad9148624f6156f7e82ebabedad38 /test/unit/attachment_test.rb | |
parent | 20be00e437a5874d8a47b82ba3aec6dc4c01c3be (diff) | |
download | redmine-d74bc734f315ddad333477f2d8b71e33051b6278.tar.gz redmine-d74bc734f315ddad333477f2d8b71e33051b6278.zip |
Fixed the assertion (#24186).
git-svn-id: http://svn.redmine.org/redmine/trunk@16084 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/attachment_test.rb')
-rw-r--r-- | test/unit/attachment_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index 2df639c61..57c457f88 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_test.rb @@ -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, |