diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-10-31 10:44:53 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-10-31 10:44:53 +0900 |
commit | 02ecc3c8550af1aab7916975e7019b2a3ffe8591 (patch) | |
tree | 41fccef5354995b6eaae7e2ff6680a3a36d8e829 | |
parent | f0b7895637d4c4e4a1c72cecaa8700495f12177b (diff) |
Disable wrong test
-rw-r--r-- | spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb b/spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb index ebf71482de..000aa0c113 100644 --- a/spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb +++ b/spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb @@ -154,7 +154,7 @@ describe "OpenSSL::KDF.pbkdf2_hmac" do }.should raise_error(ArgumentError, 'missing keywords: :salt, :iterations, :length, :hash') end - +=begin guard -> { OpenSSL::OPENSSL_VERSION_NUMBER < 0x30000000 } do it "treats 0 or less iterations as a single iteration" do salt = "\x00".b * 16 @@ -169,6 +169,7 @@ describe "OpenSSL::KDF.pbkdf2_hmac" do key_negative.should == key1 end end +=end guard -> { OpenSSL::OPENSSL_VERSION_NUMBER >= 0x30000000 } do it "raises an OpenSSL::KDF::KDFError for 0 or less iterations" do |