diff options
author | Marius Nuennerich <marius@nuenneri.ch> | 2010-05-01 14:40:02 +0200 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-05-01 10:04:01 -0700 |
commit | 35598db01a2d754df96b23c20050c1a96c999c76 (patch) | |
tree | 3edcb49cadc98bf43753dfef972ee3a97fc29837 /activesupport | |
parent | 13867a3f5f3e2248660a942956985a4eacacb283 (diff) | |
download | rails-35598db01a2d754df96b23c20050c1a96c999c76.tar.gz rails-35598db01a2d754df96b23c20050c1a96c999c76.tar.bz2 rails-35598db01a2d754df96b23c20050c1a96c999c76.zip |
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>
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/message_encryptor_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activesupport/test/message_encryptor_test.rb b/activesupport/test/message_encryptor_test.rb index 2fba62bdd6..684b931176 100644 --- a/activesupport/test/message_encryptor_test.rb +++ b/activesupport/test/message_encryptor_test.rb @@ -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 |