Mercurial > hg > soundsoftware-site
diff test/integration/api_test/time_entries_test.rb @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 8661b858af72 |
children | cbb26bc654de |
line wrap: on
line diff
--- a/test/integration/api_test/time_entries_test.rb Thu Mar 03 11:42:28 2011 +0000 +++ b/test/integration/api_test/time_entries_test.rb Mon Jun 06 14:24:13 2011 +0100 @@ -32,6 +32,16 @@ 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