summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-11-25 14:39:59 +0000
committerGo MAEDA <maeda@farend.jp>2024-11-25 14:39:59 +0000
commit552d097802decba0810d9d099697db18b24e15e3 (patch)
tree596af79f827ca723528487d944f7a51832811d62 /test/integration/api_test
parent8d5bba6339010ae1661801ca750c3b78b92db561 (diff)
downloadredmine-552d097802decba0810d9d099697db18b24e15e3.tar.gz
redmine-552d097802decba0810d9d099697db18b24e15e3.zip
Merged r23304 from trunk to 6.0-stable (#41819).
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23310 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test')
-rw-r--r--test/integration/api_test/time_entries_test.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/integration/api_test/time_entries_test.rb b/test/integration/api_test/time_entries_test.rb
index bd417ab2d..66f7cf335 100644
--- a/test/integration/api_test/time_entries_test.rb
+++ b/test/integration/api_test/time_entries_test.rb
@@ -33,7 +33,9 @@ class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
get '/time_entries.xml', :headers => credentials('jsmith')
assert_response :success
assert_equal 'application/xml', @response.media_type
- assert_select 'time_entries[type=array] time_entry id', :text => '2'
+ assert_select 'time_entries[type=array] time_entry id', :text => '4'
+ assert_select 'time_entry:has(id:contains(4)) hours', :text => '7.65'
+ assert_select 'time_entry:has(id:contains(3)) hours', :text => '1.0'
end
test "GET /time_entries.xml with limit should return limited results" do
@@ -44,10 +46,11 @@ class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
end
test "GET /time_entries/:id.xml should return the time entry" do
- get '/time_entries/2.xml', :headers => credentials('jsmith')
+ get '/time_entries/4.xml', :headers => credentials('jsmith')
assert_response :success
assert_equal 'application/xml', @response.media_type
- assert_select 'time_entry id', :text => '2'
+ assert_select 'time_entry id', :text => '4'
+ assert_select 'time_entry hours', :text => '7.65'
end
test "GET /time_entries/:id.xml on closed project should return the time entry" do