Fixed: Git: Mercurial: Branch dropdown broken on repositories page (#10026).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8678 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fbf30eec7c
commit
83e45cad9f
|
@ -10,7 +10,7 @@
|
|||
:id => @project,
|
||||
:repository_id => @repository.identifier_param,
|
||||
:path => to_path_param(@path),
|
||||
:rev => ''},
|
||||
:rev => nil},
|
||||
{:method => :get, :id => 'revision_selector'}) do -%>
|
||||
<!-- Branches Dropdown -->
|
||||
<% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
|
||||
|
|
|
@ -163,6 +163,16 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def show_should_show_branch_selection_form
|
||||
@repository.fetch_changesets
|
||||
@project.reload
|
||||
get :show, :id => PRJ_ID
|
||||
assert_tag 'form', :attributes => {:id => 'revision_selector', :action => '/projects/subproject1/repository/show'}
|
||||
assert_tag 'select', :attributes => {:name => 'branch'},
|
||||
:child => {:tag => 'option', :attributes => {:value => 'test-branch-01'}},
|
||||
:parent => {:tag => 'form', :attributes => {:id => 'revision_selector'}}
|
||||
end
|
||||
|
||||
def test_show_branch
|
||||
assert_equal 0, @repository.changesets.count
|
||||
@repository.fetch_changesets
|
||||
|
|
Loading…
Reference in New Issue