1
0
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:
Toshi MARUYAMA 2014-06-02 17:03:08 +00:00
parent ebb1a0092f
commit dfa40b732e

View File

@ -250,6 +250,13 @@ class AttachmentsControllerTest < ActionController::TestCase
get :download, :id => 4 get :download, :id => 4
assert_response :success assert_response :success
assert_equal 'application/x-ruby', @response.content_type 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 set_tmp_attachments_directory
end end