Created
August 10, 2010 05:05
-
-
Save aaroncampos/516712 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When /^the MyMedLab order is posted to BioIQ with username "([^\"]*)" and password "([^\"]*)"$/ do |username, password| | |
@response_code = post('api/orders.xml', | |
@mml_order.to_xml(:root => 'order'), | |
{"Content-type" => "text/xml", | |
:authorization => ActionController::HttpAuthentication::Basic. | |
encode_credentials(username, password)}) | |
@parsed_response = Nokogiri::Slop(@response.body) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment