1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* remove trailing spaces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
svn 2014-05-27 09:48:30 +00:00
parent bab55ed3f5
commit 08e9b7d66c

View file

@ -157,25 +157,25 @@ class OpenSSL::TestPKCS7 < Test::Unit::TestCase
p7.type = "signed"
assert_equal(p7.type, :signed)
end
def test_set_type_data
p7 = OpenSSL::PKCS7.new
p7.type = "data"
assert_equal(p7.type, :data)
end
def test_set_type_signed_and_enveloped
p7 = OpenSSL::PKCS7.new
p7.type = "signedAndEnveloped"
assert_equal(p7.type, :signedAndEnveloped)
end
def test_set_type_enveloped
p7 = OpenSSL::PKCS7.new
p7.type = "enveloped"
assert_equal(p7.type, :enveloped)
end
def test_set_type_encrypted
p7 = OpenSSL::PKCS7.new
p7.type = "encrypted"
@ -213,7 +213,7 @@ END
ca_cert = OpenSSL::X509::Certificate.new(ca_cert_pem)
p7.add_certificate ca_cert
p7.add_data ""
assert_nothing_raised do
p7.to_pem
end
@ -290,7 +290,7 @@ END
store = OpenSSL::X509::Store.new
pki_msg.verify(nil, store, nil, OpenSSL::PKCS7::NOVERIFY)
p7enc = OpenSSL::PKCS7.new(pki_msg.data)
assert_equal(p7enc.to_pem, pki_message_content_pem)
assert_equal(p7enc.to_pem, pki_message_content_pem)
end
end