spec/support/lite_constraints.rb in mongo-2.11.6 vs spec/support/lite_constraints.rb in mongo-2.12.0.rc0

- old
+ new

@@ -45,18 +45,34 @@ end end def require_mongo_kerberos before(:all) do - skip 'KERBEROS_REQUIRED env var not specified' unless ENV['KERBEROS_REQUIRED'] + skip 'KERBEROS env var not specified' unless ENV['KERBEROS'] require 'mongo_kerberos' end end def require_linting before do unless Mongo::Lint.enabled? skip "Linting is not enabled" + end + end + end + + def require_libmongocrypt + before(:all) do + unless ENV['LIBMONGOCRYPT_PATH'] + skip 'Test requires path to libmongocrypt to be specified in LIBMONGOCRYPT_PATH env variable' + end + end + end + + def require_no_libmongocrypt + before(:all) do + if ENV['LIBMONGOCRYPT_PATH'] + skip 'Test requires libmongocrypt to not be configured' end end end # Some tests will fail if linting is enabled: