Sha256: a8d7bbefced2e69cf0ebcff54ee4c83f82274a1935c7ad8e190b0d0cfa9895a3
Contents?: true
Size: 776 Bytes
Versions: 23
Compression:
Stored size: 776 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 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
23 entries across 23 versions & 2 rubygems