Sha256: 77b95ba383bfb9c06eb4f204e3238bc0f061daaa021f69d79f8d9c559838485d

Contents?: true

Size: 450 Bytes

Versions: 13

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

require 'lite_spec_helper'

describe 'Mongo::Crypt::Binding' do
  require_libmongocrypt

  describe '#mongocrypt_version' do
    let(:version) { Mongo::Crypt::Binding.mongocrypt_version(nil) }

    it 'is a string' do
      expect(version).to be_a_kind_of(String)
    end

    it 'is in the x.y.z-tag format' do
      expect(version).to match(/\A(\d+.){2}(\d+)?(-[A-Za-z\+\d]+)?\z/)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/mongo/crypt/binding/version_spec.rb
mongo-2.17.4 spec/mongo/crypt/binding/version_spec.rb
mongo-2.17.3 spec/mongo/crypt/binding/version_spec.rb
mongo-2.17.2 spec/mongo/crypt/binding/version_spec.rb
mongo-2.16.3 spec/mongo/crypt/binding/version_spec.rb
mongo-2.16.2 spec/mongo/crypt/binding/version_spec.rb
mongo-2.17.1 spec/mongo/crypt/binding/version_spec.rb
mongo-2.16.1 spec/mongo/crypt/binding/version_spec.rb
mongo-2.17.0 spec/mongo/crypt/binding/version_spec.rb
mongo-2.16.0 spec/mongo/crypt/binding/version_spec.rb
mongo-2.15.1 spec/mongo/crypt/binding/version_spec.rb
mongo-2.16.0.alpha1 spec/mongo/crypt/binding/version_spec.rb
mongo-2.15.0 spec/mongo/crypt/binding/version_spec.rb