Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 0d767fd24f9fd2a4824e7620bc645d1cdd70e983 1 parent dcf0f97
@marius marius authored jeremy committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.