From de19424ea5b5c273817732a28a7f7ca6073e4107 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 11 Jan 2014 11:33:47 +0000 Subject: Adds project status to GET /projects/:id and GET /projects API response (#15815). git-svn-id: http://svn.redmine.org/redmine/trunk@12649 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/api_test/projects_test.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb index 723e783b1..441cd4844 100644 --- a/test/integration/api_test/projects_test.rb +++ b/test/integration/api_test/projects_test.rb @@ -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' -- cgit v1.2.3