summaryrefslogtreecommitdiffstats
path: root/test/integration/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-11-03 07:15:00 +0000
committerGo MAEDA <maeda@farend.jp>2018-11-03 07:15:00 +0000
commit46b028b1b87a3e06df19e1c41f9240d301568967 (patch)
tree11393f0d0cc2058ce65f40aac64d62caa501e2ed /test/integration/lib
parentdced4762005be491000490fc4c9661d0415272f7 (diff)
downloadredmine-46b028b1b87a3e06df19e1c41f9240d301568967.tar.gz
redmine-46b028b1b87a3e06df19e1c41f9240d301568967.zip
Fix that the following tests fail randomly due to uninitialized User.current (#29853):
* AttachmentsVisibilityTest#test_attachment_should_be_visible * Redmine::AttachmentFieldFormatTest#test_should_accept_a_hash_with_upload_on_create * Redmine::AttachmentFieldFormatTest#test_should_replace_attachment_on_update Patch by Gilad Shanan. git-svn-id: http://svn.redmine.org/redmine/trunk@17616 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/lib')
-rw-r--r--test/integration/lib/redmine/field_format/attachment_format_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/integration/lib/redmine/field_format/attachment_format_test.rb b/test/integration/lib/redmine/field_format/attachment_format_test.rb
index 958b25769..a01149d01 100644
--- a/test/integration/lib/redmine/field_format/attachment_format_test.rb
+++ b/test/integration/lib/redmine/field_format/attachment_format_test.rb
@@ -35,6 +35,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
:attachments
def setup
+ User.current = nil
set_tmp_attachments_directory
@field = IssueCustomField.generate!(:name => "File", :field_format => "attachment")
log_user "jsmith", "jsmith"