Skip to content

Instantly share code, notes, and snippets.

@aaroncampos
Created August 10, 2010 05:05
Show Gist options
  • Save aaroncampos/516712 to your computer and use it in GitHub Desktop.
Save aaroncampos/516712 to your computer and use it in GitHub Desktop.
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