|
|
@@ -49,8 +49,8 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base |
|
|
|
assert_response :success |
|
|
|
assert_equal 'application/xml', @response.content_type |
|
|
|
|
|
|
|
assert_tag :tag => 'projects', |
|
|
|
:child => {:tag => 'project', :child => {:tag => 'id', :content => '1'}} |
|
|
|
assert_select 'projects>project>id', :text => '1' |
|
|
|
assert_select 'projects>project>status', :text => '1' |
|
|
|
end |
|
|
|
|
|
|
|
test "GET /projects.json should return projects" do |
|
|
@@ -70,10 +70,9 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base |
|
|
|
assert_response :success |
|
|
|
assert_equal 'application/xml', @response.content_type |
|
|
|
|
|
|
|
assert_tag :tag => 'project', |
|
|
|
:child => {:tag => 'id', :content => '1'} |
|
|
|
assert_tag :tag => 'custom_field', |
|
|
|
:attributes => {:name => 'Development status'}, :content => 'Stable' |
|
|
|
assert_select 'project>id', :text => '1' |
|
|
|
assert_select 'project>status', :text => '1' |
|
|
|
assert_select 'custom_field[name=Development status]', :text => 'Stable' |
|
|
|
|
|
|
|
assert_no_tag 'trackers' |
|
|
|
assert_no_tag 'issue_categories' |