Skip to content

Commit c64de7b

Browse files
committed
fix rubocop autocorrect failure
1 parent ff25871 commit c64de7b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/mongo/socket/ssl_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
# https://github.com/jruby/jruby-openssl/issues/221
5555
fails_on_jruby
5656

57-
let(:proc) do
57+
let(:callback) do
5858
proc do |context|
5959
context.ciphers = if BSON::Environment.jruby?
6060
[ 'AES256-SHA256' ]
@@ -65,7 +65,7 @@
6565
end
6666

6767
before do
68-
Mongo.tls_context_hooks = [ proc ]
68+
Mongo.tls_context_hooks = [ callback ]
6969
end
7070

7171
after do
@@ -75,7 +75,7 @@
7575
it 'runs the TLS context hook before connecting' do
7676
skip 'OCSP configurations use different certificates which this test does not handle' if ENV['OCSP_ALGORITHM']
7777

78-
expect(proc).to receive(:call).and_call_original
78+
expect(callback).to receive(:call).and_call_original
7979
socket
8080
# Even though we are requesting a single cipher in the hook,
8181
# there may be multiple ciphers available in the context.

0 commit comments

Comments
 (0)