##// END OF EJS Templates
scm: filesystem: add test of no extension file whose content is only ASCII can be showing (#6256)....
Toshi MARUYAMA -
r5078:ec2fd81f7bfb
parent child
Show More
@@ -46,7 +46,7 class RepositoriesFilesystemControllerTest < ActionController::TestCase
46 46 def test_browse_root
47 47 @repository.fetch_changesets
48 48 @repository.reload
49 get :show, :id => 3
49 get :show, :id => PRJ_ID
50 50 assert_response :success
51 51 assert_template 'show'
52 52 assert_not_nil assigns(:entries)
@@ -54,6 +54,16 class RepositoriesFilesystemControllerTest < ActionController::TestCase
54 54 assert_not_nil assigns(:changesets)
55 55 assert assigns(:changesets).size == 0
56 56 end
57
58 def test_show_no_extension
59 get :entry, :id => PRJ_ID, :path => ['test']
60 assert_response :success
61 assert_template 'entry'
62 assert_tag :tag => 'th',
63 :content => '1',
64 :attributes => { :class => 'line-num' },
65 :sibling => { :tag => 'td', :content => /TEST CAT/ }
66 end
57 67 else
58 68 puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!"
59 69 def test_fake; assert true end
General Comments 0
You need to be logged in to leave comments. Login now