@@ -87,6 +87,15 class RepositoriesFilesystemControllerTest < ActionController::TestCase | |||
|
87 | 87 | :sibling => { :tag => 'td', :content => /japanese/ } |
|
88 | 88 | end |
|
89 | 89 | end |
|
90 | ||
|
91 | def test_show_text_file_should_send_if_too_big | |
|
92 | with_settings :file_max_size_displayed => 1 do | |
|
93 | get :entry, :id => PRJ_ID, :path => ['japanese', 'big-file.txt'] | |
|
94 | assert_response :success | |
|
95 | # TODO: 'image/png' | |
|
96 | assert_equal 'application/octet-stream', @response.content_type | |
|
97 | end | |
|
98 | end | |
|
90 | 99 | else |
|
91 | 100 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" |
|
92 | 101 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now