We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff25871 commit c64de7bCopy full SHA for c64de7b
1 file changed
spec/mongo/socket/ssl_spec.rb
@@ -54,7 +54,7 @@
54
# https://github.com/jruby/jruby-openssl/issues/221
55
fails_on_jruby
56
57
- let(:proc) do
+ let(:callback) do
58
proc do |context|
59
context.ciphers = if BSON::Environment.jruby?
60
[ 'AES256-SHA256' ]
@@ -65,7 +65,7 @@
65
end
66
67
before do
68
- Mongo.tls_context_hooks = [ proc ]
+ Mongo.tls_context_hooks = [ callback ]
69
70
71
after do
@@ -75,7 +75,7 @@
75
it 'runs the TLS context hook before connecting' do
76
skip 'OCSP configurations use different certificates which this test does not handle' if ENV['OCSP_ALGORITHM']
77
78
- expect(proc).to receive(:call).and_call_original
+ expect(callback).to receive(:call).and_call_original
79
socket
80
# Even though we are requesting a single cipher in the hook,
81
# there may be multiple ciphers available in the context.
0 commit comments