@@ -64,6 +64,18 class RepositoriesFilesystemControllerTest < ActionController::TestCase | |||||
64 | :attributes => { :class => 'line-num' }, |
|
64 | :attributes => { :class => 'line-num' }, | |
65 | :sibling => { :tag => 'td', :content => /TEST CAT/ } |
|
65 | :sibling => { :tag => 'td', :content => /TEST CAT/ } | |
66 | end |
|
66 | end | |
|
67 | ||||
|
68 | def test_show_non_ascii_contents | |||
|
69 | with_settings :repositories_encodings => 'UTF-8,EUC-JP' do | |||
|
70 | get :entry, :id => PRJ_ID, :path => ['japanese', 'euc-jp.txt'] | |||
|
71 | assert_response :success | |||
|
72 | assert_template 'entry' | |||
|
73 | assert_tag :tag => 'th', | |||
|
74 | :content => '2', | |||
|
75 | :attributes => { :class => 'line-num' }, | |||
|
76 | :sibling => { :tag => 'td', :content => /japanese/ } | |||
|
77 | end | |||
|
78 | end | |||
67 | else |
|
79 | else | |
68 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" |
|
80 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" | |
69 | def test_fake; assert true end |
|
81 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now