end
def test_entry_binary_force_download
- get :entry, :id => PRJ_ID, :rev => 1,
- :path => repository_path_hash(['images', 'edit.png'])[:param]
- assert_response :success
- assert_equal 'image/png', @response.content_type
+ # TODO: add a binary file which is not an image to the test repo
end
def test_directory_entry
end
end
- def test_entry_should_send_images_inline
+ def test_entry_should_display_images
get :entry, :id => PRJ_ID,
:path => repository_path_hash(['subversion_test', 'folder', 'subfolder', 'rubylogo.gif'])[:param]
assert_response :success
- assert_equal 'inline; filename="rubylogo.gif"', response.headers['Content-Disposition']
+ assert_template 'entry'
end
def test_entry_at_given_revision