photomix/vendor/plugins/authlogic/test/crypto_provider_test/sha512_test.rb

14 lines
371 B
Ruby
Raw Normal View History

2011-04-11 12:07:31 +02:00
require 'test_helper'
module CryptoProviderTest
class Sha512Test < ActiveSupport::TestCase
def test_encrypt
assert Authlogic::CryptoProviders::Sha512.encrypt("mypass")
end
def test_matches
hash = Authlogic::CryptoProviders::Sha512.encrypt("mypass")
assert Authlogic::CryptoProviders::Sha512.matches?(hash, "mypass")
end
end
end