Accept filters from API calls without set_filter parameter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3335 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user