mirror of
https://github.com/redmine/redmine.git
synced 2026-07-07 07:31:45 +02:00
Fixed: GET /time_entries.xml ignores limit/offset parameters (#8356).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5881 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -32,6 +32,16 @@ class ApiTest::TimeEntriesTest < ActionController::IntegrationTest
|
||||
assert_tag :tag => 'time_entries',
|
||||
:child => {:tag => 'time_entry', :child => {:tag => 'id', :content => '2'}}
|
||||
end
|
||||
|
||||
context "with limit" do
|
||||
should "return limited results" do
|
||||
get '/time_entries.xml?limit=2', {}, :authorization => credentials('jsmith')
|
||||
assert_response :success
|
||||
assert_equal 'application/xml', @response.content_type
|
||||
assert_tag :tag => 'time_entries',
|
||||
:children => {:count => 2}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "GET /time_entries/2.xml" do
|
||||
|
||||
Reference in New Issue
Block a user