scm: git: add browsing tag test in functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5121 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b99a2c23de
commit
9ae4b74b1e
|
@ -91,6 +91,23 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
|||
assigns(:changesets).size > 0
|
||||
end
|
||||
|
||||
def test_browse_tag
|
||||
@repository.fetch_changesets
|
||||
@repository.reload
|
||||
[
|
||||
"tag00.lightweight",
|
||||
"tag01.annotated",
|
||||
].each do |t1|
|
||||
get :show, :id => 3, :rev => t1
|
||||
assert_response :success
|
||||
assert_template 'show'
|
||||
assert_not_nil assigns(:entries)
|
||||
assigns(:entries).size > 0
|
||||
assert_not_nil assigns(:changesets)
|
||||
assigns(:changesets).size > 0
|
||||
end
|
||||
end
|
||||
|
||||
def test_browse_directory
|
||||
@repository.fetch_changesets
|
||||
@repository.reload
|
||||
|
|
Loading…
Reference in New Issue