summaryrefslogtreecommitdiffstats
path: root/test/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-10-04 11:17:33 +0000
committerGo MAEDA <maeda@farend.jp>2019-10-04 11:17:33 +0000
commit5ce4a363a951e4a64afd29bbe216b83fe4fdcc12 (patch)
tree33f3e2c8f59467f435f7a0f960b21d58eff87d73 /test/helpers
parentb83402029721fd5813e3ae6c1eea5fc644651ebf (diff)
downloadredmine-5ce4a363a951e4a64afd29bbe216b83fe4fdcc12.tar.gz
redmine-5ce4a363a951e4a64afd29bbe216b83fe4fdcc12.zip
Fix test failure due to missing call to set_tmp_attachments_directory (#32122).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18593 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers')
-rw-r--r--test/helpers/application_helper_test.rb3
-rw-r--r--test/helpers/journals_helper_test.rb1
2 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 9abf47fa7..552eb210f 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -190,7 +190,6 @@ RAW
end
def test_attached_images_filename_extension
- set_tmp_attachments_directory
a1 = Attachment.new(
:container => Issue.find(1),
:file => mock_file_with_options({:original_filename => "testtest.JPG"}),
@@ -264,6 +263,7 @@ RAW
}
attachments = [a1, a2]
to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => attachments) }
+ ensure
set_tmp_attachments_directory
end
@@ -722,7 +722,6 @@ RAW
end
def test_attachment_link_should_link_to_latest_attachment
- set_tmp_attachments_directory
a1 = Attachment.generate!(:filename => "test.txt", :created_on => 1.hour.ago)
a2 = Attachment.generate!(:filename => "test.txt")
result = link_to("test.txt", "/attachments/#{a2.id}",
diff --git a/test/helpers/journals_helper_test.rb b/test/helpers/journals_helper_test.rb
index 2e54a2a29..bda4945f9 100644
--- a/test/helpers/journals_helper_test.rb
+++ b/test/helpers/journals_helper_test.rb
@@ -32,6 +32,7 @@ class JournalsHelperTest < Redmine::HelperTest
:versions
def test_journal_thumbnail_attachments_should_return_thumbnailable_attachments
+ set_tmp_attachments_directory
issue = Issue.generate!
journal = new_record(Journal) do