File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ module Crypt
28
28
end
29
29
end
30
30
31
+ # JRuby 9.3.2.0 replaces a LoadError with our custom message with a
32
+ # generic NameError, when this load is attempted as part of autoloading
33
+ # process. JRuby 9.2.20.0 propagates LoadError as expected.
31
34
raise LoadError , "Cannot load Mongo::Crypt::Binding because there is no path " +
32
35
"to libmongocrypt specified in the LIBMONGOCRYPT_PATH environment variable."
33
36
end
Original file line number Diff line number Diff line change 8
8
9
9
context 'when load fails' do
10
10
11
+ # JRuby 9.3.2.0 converts our custom LoadErrors to generic NameErrors
12
+ # and trashes the exception messages.
13
+ fails_on_jruby
14
+
11
15
it 'retries loading at the next reference' do
12
16
lambda do
13
17
Mongo ::Crypt ::Binding
You can’t perform that action at this time.
0 commit comments