* 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
:issues, :trackers, :versions
def setup
+ User.current = nil
set_tmp_attachments_directory
@field = IssueCustomField.generate!(:field_format => 'attachment', :visible => true)
class Redmine::ApiTest::AuthenticationTest < Redmine::ApiTest::Base
fixtures :users
+ def teardown
+ User.current = nil
+ end
+
def test_api_should_deny_without_credentials
get '/users/current.xml'
assert_response 401
:attachments
def setup
+ User.current = nil
set_tmp_attachments_directory
@field = IssueCustomField.generate!(:name => "File", :field_format => "attachment")
log_user "jsmith", "jsmith"