@@ -261,6 +261,8 class RepositoriesGitControllerTest < ActionController::TestCase | |||||
261 | end |
|
261 | end | |
262 |
|
262 | |||
263 | def test_diff |
|
263 | def test_diff | |
|
264 | assert_equal true, @repository.is_default | |||
|
265 | assert_nil @repository.identifier | |||
264 | assert_equal 0, @repository.changesets.count |
|
266 | assert_equal 0, @repository.changesets.count | |
265 | @repository.fetch_changesets |
|
267 | @repository.fetch_changesets | |
266 | @project.reload |
|
268 | @project.reload | |
@@ -351,6 +353,18 class RepositoriesGitControllerTest < ActionController::TestCase | |||||
351 | diff = assigns(:diff) |
|
353 | diff = assigns(:diff) | |
352 | assert_not_nil diff |
|
354 | assert_not_nil diff | |
353 | assert_tag :tag => 'h2', :content => /2f9c0091:61b685fb/ |
|
355 | assert_tag :tag => 'h2', :content => /2f9c0091:61b685fb/ | |
|
356 | assert_tag :tag => "form", | |||
|
357 | :attributes => { | |||
|
358 | :action => "/projects/subproject1/repository/revisions/" + | |||
|
359 | "61b685fbe55ab05b5ac68402d5720c1a6ac973d1/diff" | |||
|
360 | } | |||
|
361 | assert_tag :tag => 'input', | |||
|
362 | :attributes => { | |||
|
363 | :id => "rev_to", | |||
|
364 | :name => "rev_to", | |||
|
365 | :type => "hidden", | |||
|
366 | :value => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7' | |||
|
367 | } | |||
354 | end |
|
368 | end | |
355 | end |
|
369 | end | |
356 |
|
370 |
General Comments 0
You need to be logged in to leave comments.
Login now