Browse Source

scm: filesystem: add test of no extension file whose content is only ASCII can be showing (#6256).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5198 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.2.0
Toshi MARUYAMA 13 years ago
parent
commit
ec2fd81f7b
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      test/functional/repositories_filesystem_controller_test.rb

+ 11
- 1
test/functional/repositories_filesystem_controller_test.rb View File

@@ -46,7 +46,7 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
def test_browse_root
@repository.fetch_changesets
@repository.reload
get :show, :id => 3
get :show, :id => PRJ_ID
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entries)
@@ -54,6 +54,16 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
assert_not_nil assigns(:changesets)
assert assigns(:changesets).size == 0
end

def test_show_no_extension
get :entry, :id => PRJ_ID, :path => ['test']
assert_response :success
assert_template 'entry'
assert_tag :tag => 'th',
:content => '1',
:attributes => { :class => 'line-num' },
:sibling => { :tag => 'td', :content => /TEST CAT/ }
end
else
puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end

Loading…
Cancel
Save