@@ -192,16 +192,21 class RepositoriesGitControllerTest < ActionController::TestCase | |||
|
192 | 192 | @repository.fetch_changesets |
|
193 | 193 | @repository.reload |
|
194 | 194 | # Full diff of changeset 2f9c0091 |
|
195 | get :diff, :id => PRJ_ID, :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' | |
|
196 | assert_response :success | |
|
197 | assert_template 'diff' | |
|
198 | # Line 22 removed | |
|
199 | assert_tag :tag => 'th', | |
|
200 | :content => /22/, | |
|
201 | :sibling => { :tag => 'td', | |
|
202 | :attributes => { :class => /diff_out/ }, | |
|
203 | :content => /def remove/ } | |
|
204 | assert_tag :tag => 'h2', :content => /2f9c0091/ | |
|
195 | ['inline', 'sbs'].each do |dt| | |
|
196 | get :diff, | |
|
197 | :id => PRJ_ID, | |
|
198 | :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7', | |
|
199 | :type => dt | |
|
200 | assert_response :success | |
|
201 | assert_template 'diff' | |
|
202 | # Line 22 removed | |
|
203 | assert_tag :tag => 'th', | |
|
204 | :content => /22/, | |
|
205 | :sibling => { :tag => 'td', | |
|
206 | :attributes => { :class => /diff_out/ }, | |
|
207 | :content => /def remove/ } | |
|
208 | assert_tag :tag => 'h2', :content => /2f9c0091/ | |
|
209 | end | |
|
205 | 210 | end |
|
206 | 211 | |
|
207 | 212 | def test_diff_two_revs |
General Comments 0
You need to be logged in to leave comments.
Login now