mirror of https://github.com/rails/rails
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>
This commit is contained in:
parent
13867a3f5f
commit
35598db01a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue