mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
add test of attachment download etag
git-svn-id: http://svn.redmine.org/redmine/trunk@13174 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ebb1a0092f
commit
dfa40b732e
@ -250,6 +250,13 @@ class AttachmentsControllerTest < ActionController::TestCase
|
||||
get :download, :id => 4
|
||||
assert_response :success
|
||||
assert_equal 'application/x-ruby', @response.content_type
|
||||
etag = @response.etag
|
||||
assert_not_nil etag
|
||||
|
||||
@request.env["HTTP_IF_NONE_MATCH"] = etag
|
||||
get :download, :id => 4
|
||||
assert_response 304
|
||||
|
||||
set_tmp_attachments_directory
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user