Permalink
Browse files

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>
  • Loading branch information...
marius authored and jeremy committed May 1, 2010
1 parent 13867a3 commit 35598db01a2d754df96b23c20050c1a96c999c76
Showing with 10 additions and 0 deletions.
  1. +10 −0 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 @@ def munge(base64_string)
ActiveSupport::Base64.encode64s(bits)
end
end
+
+end

0 comments on commit 35598db

Please sign in to comment.