diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/api_test/time_entries_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/api_test/time_entries_test.rb b/test/integration/api_test/time_entries_test.rb index 60a9dba62..ce28c5dda 100644 --- a/test/integration/api_test/time_entries_test.rb +++ b/test/integration/api_test/time_entries_test.rb @@ -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 |