Skip to content
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...
1 parent dcf0f97 commit 0d767fd24f9fd2a4824e7620bc645d1cdd70e983 @marius marius committed with jeremy May 1, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 activesupport/test/message_encryptor_test.rb
View
9 activesupport/test/message_encryptor_test.rb
@@ -1,5 +1,12 @@
require 'abstract_unit'
+begin
+ require 'openssl'
+ OpenSSL::Digest::SHA1
+rescue LoadError, NameError
+ $stderr.puts "Skipping MessageEncryptor test: broken OpenSSL install"
+else
+
class MessageEncryptorTest < Test::Unit::TestCase
def setup
@encryptor = ActiveSupport::MessageEncryptor.new(ActiveSupport::SecureRandom.hex(64))
@@ -44,3 +51,5 @@ def munge(base64_string)
ActiveSupport::Base64.encode64s(bits)
end
end
+
+end

0 comments on commit 0d767fd

Please sign in to comment.
Something went wrong with that request. Please try again.