aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_cipher.rb
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2015-11-13 11:02:30 +0900
committerZachary Scott <e@zzak.io>2015-11-13 11:10:06 +0900
commitcc36e11b6621281e2f3e700a1b38327adcff2b71 (patch)
tree07ff07acd6797c66a3c599a90c840206e5c81791 /test/test_cipher.rb
parent908a62cc0cff25f1861fcb69b70e10a31590e3d2 (diff)
downloadruby-openssl-cc36e11b6621281e2f3e700a1b38327adcff2b71.tar.gz
Merge trunk upstream
Diffstat (limited to 'test/test_cipher.rb')
-rw-r--r--test/test_cipher.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_cipher.rb b/test/test_cipher.rb
index 33e781be..6f92c381 100644
--- a/test/test_cipher.rb
+++ b/test/test_cipher.rb
@@ -10,9 +10,8 @@ class OpenSSL::TestCipher < Test::Unit::TestCase
ciphers = OpenSSL::Cipher.ciphers
# redefine method so we can use the cached ciphers value from the closure
# and need not recompute the list each time
- undef has_cipher?
- define_singleton_method :has_cipher? do |cipher|
- ciphers.include?(cipher)
+ define_singleton_method :has_cipher? do |name|
+ ciphers.include?(name)
end
has_cipher?(name)
end