diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-22 15:32:03 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-22 15:32:03 +0000 |
commit | 53b41950d1cb7e583b8092f5a42597d54f65c1df (patch) | |
tree | 43cbc0fc8265df1e3785c1667508f41f0e20b52f /test/functional/repositories_filesystem_controller_test.rb | |
parent | 79eba572affbe7bd3b3a1985e94f9f6e11822b4b (diff) | |
download | redmine-53b41950d1cb7e583b8092f5a42597d54f65c1df.tar.gz redmine-53b41950d1cb7e583b8092f5a42597d54f65c1df.zip |
scm: filesystem: add test for non ascii text file displaying (#6256).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5205 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_filesystem_controller_test.rb')
-rw-r--r-- | test/functional/repositories_filesystem_controller_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb index 7f569b611..be1ea9281 100644 --- a/test/functional/repositories_filesystem_controller_test.rb +++ b/test/functional/repositories_filesystem_controller_test.rb @@ -64,6 +64,18 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase :attributes => { :class => 'line-num' }, :sibling => { :tag => 'td', :content => /TEST CAT/ } end + + def test_show_non_ascii_contents + with_settings :repositories_encodings => 'UTF-8,EUC-JP' do + get :entry, :id => PRJ_ID, :path => ['japanese', 'euc-jp.txt'] + assert_response :success + assert_template 'entry' + 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 |