File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
spec/integration/client_side_encryption Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 30
30
)
31
31
end
32
32
33
+ before ( :each ) do
34
+ skip 'This test requires crypt shared library' unless SpecConfig . instance . crypt_shared_lib_path
35
+
36
+ key_vault_collection . drop
37
+ key_vault_collection . insert_one ( data_key )
38
+
39
+ encryption_client [ 'users' ] . drop
40
+ end
41
+
33
42
context 'when shared library is loaded' do
34
43
let ( :extra_options ) do
35
44
{
@@ -70,8 +79,6 @@ def done!
70
79
end
71
80
72
81
it 'does not try to connect to mongocryptd' do
73
- skip 'This test requires crypt shared library' unless SpecConfig . instance . crypt_shared_lib_path
74
-
75
82
encryption_client [ :users ] . insert_one ( ssn : ssn )
76
83
expect ( connect_attempt . done? ) . to eq ( false )
77
84
end
@@ -88,8 +95,6 @@ def done!
88
95
end
89
96
90
97
it 'does not spawn mongocryptd' do
91
- skip 'This test requires crypt shared library' unless SpecConfig . instance . crypt_shared_lib_path
92
-
93
98
expect do
94
99
encryption_client [ :users ] . insert_one ( ssn : ssn )
95
100
end . not_to raise_error
You can’t perform that action at this time.
0 commit comments