Sha256: f5299e9e5d73b4eb252cc6340e72c30997b4f45ca185229cc3a7e860ccfa2b7b
Contents?: true
Size: 773 Bytes
Versions: 27
Compression:
Stored size: 773 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Mongoid::Errors::NoClientDatabase do describe "#message" do let(:error) do described_class.new(:analytics, { 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: :analytics." ) 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 :analytics" ) end end end
Version data entries
27 entries across 27 versions & 1 rubygems