@@ -110,16 +110,18 class RepositoriesBazaarControllerTest < ActionController::TestCase | |||||
110 |
|
110 | |||
111 | def test_diff |
|
111 | def test_diff | |
112 | # Full diff of changeset 3 |
|
112 | # Full diff of changeset 3 | |
113 | get :diff, :id => PRJ_ID, :rev => 3 |
|
113 | ['inline', 'sbs'].each do |dt| | |
|
114 | get :diff, :id => PRJ_ID, :rev => 3, :type => dt | |||
114 | assert_response :success |
|
115 | assert_response :success | |
115 | assert_template 'diff' |
|
116 | assert_template 'diff' | |
116 | # Line 11 removed |
|
117 | # Line 11 removed | |
117 | assert_tag :tag => 'th', |
|
118 | assert_tag :tag => 'th', | |
118 |
:content => |
|
119 | :content => '11', | |
119 | :sibling => { :tag => 'td', |
|
120 | :sibling => { :tag => 'td', | |
120 | :attributes => { :class => /diff_out/ }, |
|
121 | :attributes => { :class => /diff_out/ }, | |
121 | :content => /Display more information/ } |
|
122 | :content => /Display more information/ } | |
122 | end |
|
123 | end | |
|
124 | end | |||
123 |
|
125 | |||
124 | def test_annotate |
|
126 | def test_annotate | |
125 | get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt'] |
|
127 | get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt'] |
General Comments 0
You need to be logged in to leave comments.
Login now