Sha256: c0baa2204c621103d72eaa78f1ffe6a4fbfa793431b52d4a89850ed534e0f11e

Contents?: true

Size: 638 Bytes

Versions: 10

Compression:

Stored size: 638 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Mongo::Crypt do
  describe '.validate_ffi!' do
    context 'when ffi is available' do
      context 'when ffi is loaded' do
        it 'does not raise' do
          expect do
            described_class.validate_ffi!
          end.not_to raise_error
        end
      end
    end
    # There is no reasonably simple way to test the path where ffi is not
    # available. The ffi gem is a part of our standard test dependencies, so
    # it's always available. So, we would need a dedicated configuration
    # just to test this feature; it seems to be an overhead.
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/mongo/crypt_spec.rb
mongo-2.20.1 spec/mongo/crypt_spec.rb
mogno-2.20.0 spec/mongo/crypt_spec.rb
mogno-1.0.0 spec/mongo/crypt_spec.rb
mongo-2.20.0 spec/mongo/crypt_spec.rb
mongo-2.19.3 spec/mongo/crypt_spec.rb
mongo-2.18.3 spec/mongo/crypt_spec.rb
mongo-2.19.2 spec/mongo/crypt_spec.rb
mongo-2.19.1 spec/mongo/crypt_spec.rb
mongo-2.19.0 spec/mongo/crypt_spec.rb