Skip to content

Commit

Permalink
repair the activesupport message encryptor tests for me, do so in the…
Browse files Browse the repository at this point in the history
… 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 dcf0f97 commit 0d767fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 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))
Expand Down Expand Up @@ -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.