Mercurial > hg > soundsoftware-site
comparison test/integration/api_test/.svn/text-base/time_entries_test.rb.svn-base @ 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 |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
29 get '/time_entries.xml', {}, :authorization => credentials('jsmith') | 29 get '/time_entries.xml', {}, :authorization => credentials('jsmith') |
30 assert_response :success | 30 assert_response :success |
31 assert_equal 'application/xml', @response.content_type | 31 assert_equal 'application/xml', @response.content_type |
32 assert_tag :tag => 'time_entries', | 32 assert_tag :tag => 'time_entries', |
33 :child => {:tag => 'time_entry', :child => {:tag => 'id', :content => '2'}} | 33 :child => {:tag => 'time_entry', :child => {:tag => 'id', :content => '2'}} |
34 end | |
35 | |
36 context "with limit" do | |
37 should "return limited results" do | |
38 get '/time_entries.xml?limit=2', {}, :authorization => credentials('jsmith') | |
39 assert_response :success | |
40 assert_equal 'application/xml', @response.content_type | |
41 assert_tag :tag => 'time_entries', | |
42 :children => {:count => 2} | |
43 end | |
34 end | 44 end |
35 end | 45 end |
36 | 46 |
37 context "GET /time_entries/2.xml" do | 47 context "GET /time_entries/2.xml" do |
38 should "return requested time entry" do | 48 should "return requested time entry" do |