@@ -76,6 +76,17 class RepositoriesFilesystemControllerTest < ActionController::TestCase | |||||
76 | :sibling => { :tag => 'td', :content => /japanese/ } |
|
76 | :sibling => { :tag => 'td', :content => /japanese/ } | |
77 | end |
|
77 | end | |
78 | end |
|
78 | end | |
|
79 | ||||
|
80 | def test_show_utf16 | |||
|
81 | with_settings :repositories_encodings => 'UTF-16' do | |||
|
82 | get :entry, :id => PRJ_ID, :path => ['japanese', 'utf-16.txt'] | |||
|
83 | assert_response :success | |||
|
84 | assert_tag :tag => 'th', | |||
|
85 | :content => '2', | |||
|
86 | :attributes => { :class => 'line-num' }, | |||
|
87 | :sibling => { :tag => 'td', :content => /japanese/ } | |||
|
88 | end | |||
|
89 | end | |||
79 | else |
|
90 | else | |
80 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" |
|
91 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" | |
81 | def test_fake; assert true end |
|
92 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now