repair the activesupport message encryptor tests for me, do so in the same way as jeremy did with message verifier

[#4517 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
Marius Nuennerich 2010-05-01 14:40:02 +02:00 committed by Jeremy Kemper
parent 13867a3f5f
commit 35598db01a
1 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,12 @@
require 'abstract_unit'
begin
require 'openssl'
OpenSSL::Digest::SHA1
rescue LoadError, NameError
$stderr.puts "Skipping MessageEncryptor test: broken OpenSSL install"
else
require 'active_support/time'
class MessageEncryptorTest < Test::Unit::TestCase
@ -45,3 +53,5 @@ class MessageEncryptorTest < Test::Unit::TestCase
ActiveSupport::Base64.encode64s(bits)
end
end
end