@@ -474,6 +474,22 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
474 | end |
|
474 | end | |
475 | end |
|
475 | end | |
476 |
|
476 | |||
|
477 | def test_revision | |||
|
478 | assert_equal 0, @repository.changesets.count | |||
|
479 | @repository.fetch_changesets | |||
|
480 | @project.reload | |||
|
481 | assert_equal NUM_REV, @repository.changesets.count | |||
|
482 | ['1', '9d5b5b', '9d5b5b004199'].each do |r| | |||
|
483 | with_settings :default_language => "en" do | |||
|
484 | get :revision, :id => PRJ_ID, :rev => r | |||
|
485 | assert_response :success | |||
|
486 | assert_template 'revision' | |||
|
487 | assert_select 'title', | |||
|
488 | :text => 'Revision 1:9d5b5b004199 - eCookbook Subproject 1 - Redmine' | |||
|
489 | end | |||
|
490 | end | |||
|
491 | end | |||
|
492 | ||||
477 | def test_empty_revision |
|
493 | def test_empty_revision | |
478 | assert_equal 0, @repository.changesets.count |
|
494 | assert_equal 0, @repository.changesets.count | |
479 | @repository.fetch_changesets |
|
495 | @repository.fetch_changesets |
General Comments 0
You need to be logged in to leave comments.
Login now