summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_subversion_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-07 17:00:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-07 17:00:29 +0000
commit234e5d59acf4865e8573a571f6992c38d76e3dfa (patch)
tree37d4914a7b9f17c9cc5165bef4cecf4807c041ea /test/functional/repositories_subversion_controller_test.rb
parent44ea32afba34ab47ab6df9906ab4c3f125e2f276 (diff)
downloadredmine-234e5d59acf4865e8573a571f6992c38d76e3dfa.tar.gz
redmine-234e5d59acf4865e8573a571f6992c38d76e3dfa.zip
Show repository images inline when clicking 'View' (#10362).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9776 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_subversion_controller_test.rb')
-rw-r--r--test/functional/repositories_subversion_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb
index 7176cd59e..5bee2a3b6 100644
--- a/test/functional/repositories_subversion_controller_test.rb
+++ b/test/functional/repositories_subversion_controller_test.rb
@@ -185,6 +185,13 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
end
end
+ def test_entry_should_send_images_inline
+ 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']
+ end
+
def test_entry_at_given_revision
assert_equal 0, @repository.changesets.count
@repository.fetch_changesets