diff options
Diffstat (limited to 'test/integration/api_test/queries_test.rb')
-rw-r--r-- | test/integration/api_test/queries_test.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/test/integration/api_test/queries_test.rb b/test/integration/api_test/queries_test.rb index afaed3090..72e9ed5e2 100644 --- a/test/integration/api_test/queries_test.rb +++ b/test/integration/api_test/queries_test.rb @@ -36,18 +36,8 @@ class Redmine::ApiTest::QueriesTest < Redmine::ApiTest::Base assert_response :success assert_equal 'application/xml', @response.content_type - assert_tag :tag => 'queries', - :attributes => {:type => 'array'}, - :child => { - :tag => 'query', - :child => { - :tag => 'id', - :content => '4', - :sibling => { - :tag => 'name', - :content => 'Public query for all projects' - } - } - } + assert_select 'queries[type=array] query id:content(4)' do + assert_select '~ name', :text => 'Public query for all projects' + end end end |