@@ -212,15 +212,19 class RepositoriesGitControllerTest < ActionController::TestCase | |||
|
212 | 212 | def test_diff_two_revs |
|
213 | 213 | @repository.fetch_changesets |
|
214 | 214 | @repository.reload |
|
215 | get :diff, :id => PRJ_ID, | |
|
215 | ['inline', 'sbs'].each do |dt| | |
|
216 | get :diff, | |
|
217 | :id => PRJ_ID, | |
|
216 | 218 | :rev => '61b685fbe55ab05b5ac68402d5720c1a6ac973d1', |
|
217 | :rev_to => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' | |
|
219 | :rev_to => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7', | |
|
220 | :type => dt | |
|
218 | 221 | assert_response :success |
|
219 | 222 | assert_template 'diff' |
|
220 | 223 | diff = assigns(:diff) |
|
221 | 224 | assert_not_nil diff |
|
222 | 225 | assert_tag :tag => 'h2', :content => /2f9c0091:61b685fb/ |
|
223 | 226 | end |
|
227 | end | |
|
224 | 228 | |
|
225 | 229 | def test_diff_latin_1 |
|
226 | 230 | if @ruby19_non_utf8_pass |
General Comments 0
You need to be logged in to leave comments.
Login now