Sha256: 2df286fc7fbbb08c386a7b2532c24123ac0283e6d3d41e619b65e512ed3c7ca3

Contents?: true

Size: 428 Bytes

Versions: 18

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

require 'lite_spec_helper'

describe Mongo::Auth::InvalidMechanism do
  describe 'message' do
    let(:exception) { described_class.new(:foo) }

    it 'includes all built in mechanisms' do
      expect(exception.message).to eq(':foo is invalid, please use one of the following mechanisms: :aws, :gssapi, :mongodb_cr, :mongodb_x509, :plain, :scram, :scram256')
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.17.4 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.18.3 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.18.2 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.17.3 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.18.1 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.18.0 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.17.2 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.16.3 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.18.0.beta1 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.16.2 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.17.1 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.16.1 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.17.0 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.16.0 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.15.1 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.16.0.alpha1 spec/mongo/auth/invalid_mechanism_spec.rb
mongo-2.15.0 spec/mongo/auth/invalid_mechanism_spec.rb