summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_filesystem_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-22 15:32:47 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-22 15:32:47 +0000
commitfb0d24d37e7154166f7ce5402077ac834949d377 (patch)
tree7d13e5fcd8e5afc091b698de310dea633ad25ff4 /test/functional/repositories_filesystem_controller_test.rb
parent53b41950d1cb7e583b8092f5a42597d54f65c1df (diff)
downloadredmine-fb0d24d37e7154166f7ce5402077ac834949d377.tar.gz
redmine-fb0d24d37e7154166f7ce5402077ac834949d377.zip
scm: filesystem: add test for UTF-16 file displaying (#6256).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5206 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_filesystem_controller_test.rb')
-rw-r--r--test/functional/repositories_filesystem_controller_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb
index be1ea9281..e816115dc 100644
--- a/test/functional/repositories_filesystem_controller_test.rb
+++ b/test/functional/repositories_filesystem_controller_test.rb
@@ -76,6 +76,17 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
:sibling => { :tag => 'td', :content => /japanese/ }
end
end
+
+ def test_show_utf16
+ with_settings :repositories_encodings => 'UTF-16' do
+ get :entry, :id => PRJ_ID, :path => ['japanese', 'utf-16.txt']
+ assert_response :success
+ assert_tag :tag => 'th',
+ :content => '2',
+ :attributes => { :class => 'line-num' },
+ :sibling => { :tag => 'td', :content => /japanese/ }
+ end
+ end
else
puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end