"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/functional/attachments_controller_test.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

attachments_controller_test.rb  (redmine-4.0.3):attachments_controller_test.rb  (redmine-4.0.4)
skipping to change at line 363 skipping to change at line 363
Attachment.find(4).update! :content_type => "application/octet-stream" Attachment.find(4).update! :content_type => "application/octet-stream"
get :download, :params => { get :download, :params => {
:id => 4 :id => 4
} }
assert_response :success assert_response :success
assert_equal 'text/x-ruby', @response.content_type assert_equal 'text/x-ruby', @response.content_type
set_tmp_attachments_directory set_tmp_attachments_directory
end end
def test_download_should_assign_application_octet_stream_if_content_type_is_no
t_determined
get :download, :params => {
:id => 22
}
assert_response :success
assert_nil Redmine::MimeType.of(attachments(:attachments_022).filename)
assert_equal 'application/octet-stream', @response.content_type
set_tmp_attachments_directory
end
def test_download_missing_file def test_download_missing_file
get :download, :params => { get :download, :params => {
:id => 2 :id => 2
} }
assert_response 404 assert_response 404
set_tmp_attachments_directory set_tmp_attachments_directory
end end
def test_download_should_be_denied_without_permission def test_download_should_be_denied_without_permission
get :download, :params => { get :download, :params => {
 End of changes. 1 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)