Skip to content

Instantly share code, notes, and snippets.

@ritxi
Created April 26, 2012 13:28
Show Gist options
  • Save ritxi/2499559 to your computer and use it in GitHub Desktop.
Save ritxi/2499559 to your computer and use it in GitHub Desktop.
require 'test_helper'
class DecrypterTest < Test::Unit::TestCase
include InformationCard
def test_should_decrypt_encrypted_xml_token_into_saml_token
decrypter = Decrypter.new(
load_encrypted_information_card('wuaki.xml'),certificates_directory,
'/O=testinformationcardruby.com/CN=*.wuaki.tv')
puts decrypter.decrypt
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment