Sha256: 84ab3f78d0de3518458bcc0ba6aaa9a91caea373b2a2f95ed56cd7f5332367a2
Contents?: true
Size: 791 Bytes
Versions: 4
Compression:
Stored size: 791 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Errors::NoClientDatabase do describe "#message" do let(:error) do described_class.new(:secondary, { hosts: [ "127.0.0.1:27017" ] }) end it "contains the problem in the message" do expect(error.message).to include( "No database provided for client configuration: :secondary." ) end it "contains the summary in the message" do expect(error.message).to include( "Each client configuration must provide a database so Mongoid" ) end it "contains the resolution in the message" do expect(error.message).to include( "If configuring via a mongoid.yml, ensure that within your :secondary" ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems