]> source.dussan.org Git - redmine.git/commitdiff
Fixed the assertion (#24186).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 16 Dec 2016 08:47:37 +0000 (08:47 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 16 Dec 2016 08:47:37 +0000 (08:47 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16084 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/attachment_test.rb

index 2df639c6104d2d7217991a77b83b3a076f542ec6..57c457f888c6b921c5149b5e67c7c67fc9007181 100644 (file)
@@ -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,