@@ -1,7 +1,8 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= form_tag( |
|
3 | 3 | {:controller => 'repositories', :action => 'revision', :id => @project, |
|
4 | :repository_id => @repository.identifier_param} | |
|
4 | :repository_id => @repository.identifier_param}, | |
|
5 | :method => :get | |
|
5 | 6 | ) do %> |
|
6 | 7 | <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %> |
|
7 | 8 | <%= submit_tag 'OK' %> |
@@ -532,6 +532,21 class RepositoriesGitControllerTest < ActionController::TestCase | |||
|
532 | 532 | end |
|
533 | 533 | end |
|
534 | 534 | |
|
535 | def test_revisions | |
|
536 | assert_equal 0, @repository.changesets.count | |
|
537 | @repository.fetch_changesets | |
|
538 | @project.reload | |
|
539 | assert_equal NUM_REV, @repository.changesets.count | |
|
540 | get :revisions, :id => PRJ_ID | |
|
541 | assert_response :success | |
|
542 | assert_template 'revisions' | |
|
543 | assert_tag :tag => 'form', | |
|
544 | :attributes => { | |
|
545 | :method => 'get', | |
|
546 | :action => '/projects/subproject1/repository/revision' | |
|
547 | } | |
|
548 | end | |
|
549 | ||
|
535 | 550 | def test_revision |
|
536 | 551 | assert_equal 0, @repository.changesets.count |
|
537 | 552 | @repository.fetch_changesets |
General Comments 0
You need to be logged in to leave comments.
Login now