Sha256: 0cca435ab84ee1c5ffa2a565a51d2a73fa0913ab72ee147180104b02078c2ede
Contents?: true
Size: 758 Bytes
Versions: 29
Compression:
Stored size: 758 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Mongoid::Errors::NoClientHosts do describe "#message" do let(:error) do described_class.new(:analytics, { database: "mongoid_test" }) end it "contains the problem in the message" do expect(error.message).to include( "No hosts provided for client configuration: :analytics." ) end it "contains the summary in the message" do expect(error.message).to include( "Each client configuration must provide hosts 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
29 entries across 29 versions & 1 rubygems