Skip to content

Commit

Permalink
[api] validate history of submit requested packages
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 23, 2012
1 parent 71564be commit 620150b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/test/functional/request_controller_test.rb
Expand Up @@ -54,6 +54,7 @@ def test_submit_request_of_new_package
<action type="submit">
<source project="home:Iggy:branches:home:Iggy" package="NEW_PACKAGE"/>
</action>
<description>DESCRIPTION IS HERE</description>
</request>'
assert_response :success
node = ActiveXML::Node.new(@response.body)
Expand All @@ -78,6 +79,13 @@ def test_submit_request_of_new_package
get "/source/home:Iggy/NEW_PACKAGE/new_file"
assert_response :success

# validate history of new package
get "/source/home:Iggy/NEW_PACKAGE/_history"
assert_response :success
assert_xml_tag :tag => "requestid", :content => id
assert_xml_tag :tag => "comment", :content => "DESCRIPTION IS HERE"
assert_xml_tag :tag => "user", :content => "Iggy"

# validate request
get "/request/#{id}"
assert_response :success
Expand Down

0 comments on commit 620150b

Please sign in to comment.