summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-03 19:12:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-03 19:12:51 +0000
commitba788c336d0d860043d680134c8ff05dceca52a5 (patch)
tree804fb182c6e392fc153d0e53ec3ee33ece4fb8ed /test
parentca2c742e5e83e29badbf92d31c110fa1233a7f76 (diff)
downloadredmine-ba788c336d0d860043d680134c8ff05dceca52a5.tar.gz
redmine-ba788c336d0d860043d680134c8ff05dceca52a5.zip
REST API: option to get the project activities for time entries (#7506).
git-svn-id: http://svn.redmine.org/redmine/trunk@16365 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/integration/api_test/projects_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb
index 7f9eeeb54..7b9c58a13 100644
--- a/test/integration/api_test/projects_test.rb
+++ b/test/integration/api_test/projects_test.rb
@@ -114,6 +114,14 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
assert_select 'issue_categories[type=array] issue_category[id="2"][name=Recipes]'
end
+ test "GET /projects/:id.xml with include=time_entry_activities should return activities" do
+ get '/projects/1.xml?include=time_entry_activities'
+ assert_response :success
+ assert_equal 'application/xml', @response.content_type
+
+ assert_select 'time_entry_activities[type=array] time_entry_activity[id="10"][name=Development]'
+ end
+
test "GET /projects/:id.xml with include=trackers should return trackers" do
get '/projects/1.xml?include=trackers'
assert_response :success