diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-18 07:53:50 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-18 07:53:50 +0000 |
commit | b2670f465000c180d6529a525ed4901ab11b9506 (patch) | |
tree | 32be93d6ad665243a7a5842fceecff0cb4b9d8d9 /test/unit/attachment_test.rb | |
parent | 441985fb24c55a8462889d5cb434d855ff41ccc4 (diff) | |
download | redmine-b2670f465000c180d6529a525ed4901ab11b9506.tar.gz redmine-b2670f465000c180d6529a525ed4901ab11b9506.zip |
remove trailing white-spaces from unit attachment test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5844 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/attachment_test.rb')
-rw-r--r-- | test/unit/attachment_test.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index ad8873508..4a57669c1 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_test.rb @@ -1,18 +1,18 @@ # encoding: utf-8 # -# redMine - project management software -# Copyright (C) 2006-2007 Jean-Philippe Lang +# Redmine - project management software +# Copyright (C) 2006-2011 Jean-Philippe Lang # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. @@ -21,7 +21,7 @@ require File.expand_path('../../test_helper', __FILE__) class AttachmentTest < ActiveSupport::TestCase fixtures :issues, :users - + def setup end @@ -37,7 +37,7 @@ class AttachmentTest < ActiveSupport::TestCase assert_equal '1478adae0d4eb06d35897518540e25d6', a.digest assert File.exist?(a.diskfile) end - + def test_create_should_auto_assign_content_type a = Attachment.new(:container => Issue.find(1), :file => uploaded_test_file("testfile.txt", ""), @@ -45,7 +45,7 @@ class AttachmentTest < ActiveSupport::TestCase assert a.save assert_equal 'text/plain', a.content_type end - + def test_identical_attachments_at_the_same_time_should_not_overwrite a1 = Attachment.create!(:container => Issue.find(1), :file => uploaded_test_file("testfile.txt", ""), @@ -55,7 +55,7 @@ class AttachmentTest < ActiveSupport::TestCase :author => User.find(1)) assert a1.disk_filename != a2.disk_filename end - + def test_diskfilename assert Attachment.disk_filename("test_file.txt") =~ /^\d{12}_test_file.txt$/ assert_equal 'test_file.txt', Attachment.disk_filename("test_file.txt")[13..-1] |