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