mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 05:16:32 +02:00
Merged r7956 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@7995 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -39,7 +39,10 @@ class SysControllerTest < ActionController::TestCase
|
||||
assert_equal 'application/xml', @response.content_type
|
||||
with_options :tag => 'projects' do |test|
|
||||
test.assert_tag :children => { :count => Project.active.has_module(:repository).count }
|
||||
test.assert_tag 'project', :child => {:tag => 'identifier', :sibling => {:tag => 'is-public'}}
|
||||
end
|
||||
assert_no_tag 'extra-info'
|
||||
assert_no_tag 'extra_info'
|
||||
end
|
||||
|
||||
def test_create_project_repository
|
||||
@@ -49,10 +52,19 @@ class SysControllerTest < ActionController::TestCase
|
||||
:vendor => 'Subversion',
|
||||
:repository => { :url => 'file:///create/project/repository/subproject2'}
|
||||
assert_response :created
|
||||
|
||||
assert_equal 'application/xml', @response.content_type
|
||||
|
||||
r = Project.find(4).repository
|
||||
assert r.is_a?(Repository::Subversion)
|
||||
assert_equal 'file:///create/project/repository/subproject2', r.url
|
||||
|
||||
assert_tag 'repository-subversion',
|
||||
:child => {
|
||||
:tag => 'id', :content => r.id.to_s,
|
||||
:sibling => {:tag => 'url', :content => r.url}
|
||||
}
|
||||
assert_no_tag 'extra-info'
|
||||
assert_no_tag 'extra_info'
|
||||
end
|
||||
|
||||
def test_fetch_changesets
|
||||
|
||||
Reference in New Issue
Block a user