@@ -1,7 +1,8 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 | <%= form_tag( |
|
2 | <%= form_tag( | |
3 | {:controller => 'repositories', :action => 'revision', :id => @project, |
|
3 | {:controller => 'repositories', :action => 'revision', :id => @project, | |
4 | :repository_id => @repository.identifier_param} |
|
4 | :repository_id => @repository.identifier_param}, | |
|
5 | :method => :get | |||
5 | ) do %> |
|
6 | ) do %> | |
6 | <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %> |
|
7 | <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %> | |
7 | <%= submit_tag 'OK' %> |
|
8 | <%= submit_tag 'OK' %> |
@@ -532,6 +532,21 class RepositoriesGitControllerTest < ActionController::TestCase | |||||
532 | end |
|
532 | end | |
533 | end |
|
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 | def test_revision |
|
550 | def test_revision | |
536 | assert_equal 0, @repository.changesets.count |
|
551 | assert_equal 0, @repository.changesets.count | |
537 | @repository.fetch_changesets |
|
552 | @repository.fetch_changesets |
General Comments 0
You need to be logged in to leave comments.
Login now