Sha256: 17b0a7d51592fccbf07bc5d3b51bc3dfb5e61f6ec7c9a23b429b47ec7fdeb476

Contents?: true

Size: 539 Bytes

Versions: 15

Compression:

Stored size: 539 Bytes

Contents

require 'lite_spec_helper'

describe 'Mongo::Crypt::Binding' do
  require_no_libmongocrypt

  context 'when load fails' do

    it 'retries loading at the next reference' do
      lambda do
        Mongo::Crypt::Binding
      end.should raise_error(LoadError, /no path to libmongocrypt specified/)

      # second load should also be attempted and should fail with the
      # LoadError exception
      lambda do
        Mongo::Crypt::Binding
      end.should raise_error(LoadError, /no path to libmongocrypt specified/)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mongo-2.13.3 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.14.1 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.15.0.alpha spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.13.2 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.14.0 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.14.0.rc1 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.13.1 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.12.4 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.13.0 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.12.3 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.13.0.rc1 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.12.2 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.13.0.beta1 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.12.1 spec/mongo/crypt/binding_unloaded_spec.rb
mongo-2.12.0.rc0 spec/mongo/crypt/binding_unloaded_spec.rb