summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 11:57:41 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 11:57:41 +0000
commitbef1b7f1ca0dc66443f44bc02e8033d527eec307 (patch)
treee8313dbe3d1d054b56be11bf33a10f86b68f6290 /test
parentf32a843fef7eba4dcf9434710011dc247b0c289d (diff)
* test/openssl/test_pkcs7.rb: Fix inverted expected and actual values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_pkcs7.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/openssl/test_pkcs7.rb b/test/openssl/test_pkcs7.rb
index 775950ec32..a1ff04851a 100644
--- a/test/openssl/test_pkcs7.rb
+++ b/test/openssl/test_pkcs7.rb
@@ -155,31 +155,31 @@ class OpenSSL::TestPKCS7 < Test::Unit::TestCase
def test_set_type_signed
p7 = OpenSSL::PKCS7.new
p7.type = "signed"
- assert_equal(p7.type, :signed)
+ assert_equal(:signed, p7.type)
end
def test_set_type_data
p7 = OpenSSL::PKCS7.new
p7.type = "data"
- assert_equal(p7.type, :data)
+ assert_equal(:data, p7.type)
end
def test_set_type_signed_and_enveloped
p7 = OpenSSL::PKCS7.new
p7.type = "signedAndEnveloped"
- assert_equal(p7.type, :signedAndEnveloped)
+ assert_equal(:signedAndEnveloped, p7.type)
end
def test_set_type_enveloped
p7 = OpenSSL::PKCS7.new
p7.type = "enveloped"
- assert_equal(p7.type, :enveloped)
+ assert_equal(:enveloped, p7.type)
end
def test_set_type_encrypted
p7 = OpenSSL::PKCS7.new
p7.type = "encrypted"
- assert_equal(p7.type, :encrypted)
+ assert_equal(:encrypted, p7.type)
end
def test_degenerate_pkcs7
@@ -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(pki_message_content_pem, p7enc.to_pem)
end
end