Skip to content

Commit

Permalink
[api] document current misrendering of requests in search collections…
Browse files Browse the repository at this point in the history
…. Just one review element gets rendered.
  • Loading branch information
adrianschroeter committed Sep 13, 2012
1 parent 69004c9 commit 46fd6c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/api/test/functional/request_controller_test.rb
Expand Up @@ -413,6 +413,17 @@ def test_create_request_and_multiple_reviews
assert_xml_tag( :tag => "state", :attributes => { :name => "review" } )
assert_xml_tag( :parent => {:tag => "review", :attributes => { :state => "accepted", :by_user => "tom" }}, :tag => "comment", :content => 'review1' )
assert_xml_tag( :parent => {:tag => "review", :attributes => { :state => "new", :by_user => "tom" }}, :tag => "comment", :content => 'reopen2' )

# search this request and verify that all reviews got rendered.
get "/search/request", :match => "[@id=#{id}]"
assert_response :success
get "/search/request", :match => "[review/@by_user='adrian']"
assert_response :success
assert_xml_tag( :tag => "review", :attributes => { :by_user => "adrian" } )
if $ENABLE_BROKEN_TEST
assert_xml_tag( :tag => "review", :attributes => { :by_user => "tom" } )
assert_xml_tag( :tag => "review", :attributes => { :by_group => "test_group" } )
end
end

def test_change_review_state_after_leaving_review_phase
Expand Down

0 comments on commit 46fd6c9

Please sign in to comment.