summaryrefslogtreecommitdiffstats
path: root/test/integration/issues_api_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/issues_api_test.rb')
-rw-r--r--test/integration/issues_api_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/issues_api_test.rb b/test/integration/issues_api_test.rb
index 4406f3651..d107723f4 100644
--- a/test/integration/issues_api_test.rb
+++ b/test/integration/issues_api_test.rb
@@ -58,6 +58,15 @@ class IssuesApiTest < ActionController::IntegrationTest
assert_response :success
assert_equal 'application/xml', @response.content_type
end
+
+ def test_index_with_filter
+ get '/issues.xml?status_id=5'
+ assert_response :success
+ assert_equal 'application/xml', @response.content_type
+ assert_tag :tag => 'issues',
+ :children => { :count => Issue.visible.count(:conditions => {:status_id => 5}),
+ :only => { :tag => 'issue' } }
+ end
def test_show_routing
assert_routing(