@@ -46,7 +46,7 class RepositoriesFilesystemControllerTest < ActionController::TestCase | |||||
46 | def test_browse_root |
|
46 | def test_browse_root | |
47 | @repository.fetch_changesets |
|
47 | @repository.fetch_changesets | |
48 | @repository.reload |
|
48 | @repository.reload | |
49 |
get :show, :id => |
|
49 | get :show, :id => PRJ_ID | |
50 | assert_response :success |
|
50 | assert_response :success | |
51 | assert_template 'show' |
|
51 | assert_template 'show' | |
52 | assert_not_nil assigns(:entries) |
|
52 | assert_not_nil assigns(:entries) | |
@@ -54,6 +54,16 class RepositoriesFilesystemControllerTest < ActionController::TestCase | |||||
54 | assert_not_nil assigns(:changesets) |
|
54 | assert_not_nil assigns(:changesets) | |
55 | assert assigns(:changesets).size == 0 |
|
55 | assert assigns(:changesets).size == 0 | |
56 | end |
|
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 | else |
|
67 | else | |
58 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" |
|
68 | puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" | |
59 | def test_fake; assert true end |
|
69 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now