##// END OF EJS Templates
Merged r10502 from trunk to 1.4-stable (#11966)...
Toshi MARUYAMA -
r10298:8a8df72937c5
parent child
Show More
@@ -263,6 +263,8 class RepositoriesGitControllerTest < ActionController::TestCase
263 end
263 end
264
264
265 def test_diff
265 def test_diff
266 assert_equal true, @repository.is_default
267 assert_nil @repository.identifier
266 assert_equal 0, @repository.changesets.count
268 assert_equal 0, @repository.changesets.count
267 @repository.fetch_changesets
269 @repository.fetch_changesets
268 @project.reload
270 @project.reload
@@ -353,6 +355,18 class RepositoriesGitControllerTest < ActionController::TestCase
353 diff = assigns(:diff)
355 diff = assigns(:diff)
354 assert_not_nil diff
356 assert_not_nil diff
355 assert_tag :tag => 'h2', :content => /2f9c0091:61b685fb/
357 assert_tag :tag => 'h2', :content => /2f9c0091:61b685fb/
358 assert_tag :tag => "form",
359 :attributes => {
360 :action => "/projects/subproject1/repository/revisions/" +
361 "61b685fbe55ab05b5ac68402d5720c1a6ac973d1/diff"
362 }
363 assert_tag :tag => 'input',
364 :attributes => {
365 :id => "rev_to",
366 :name => "rev_to",
367 :type => "hidden",
368 :value => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7'
369 }
356 end
370 end
357 end
371 end
358
372
General Comments 0
You need to be logged in to leave comments. Login now