Sha256: 4a10138b5b9fe306b3c7ec365d6fee0128f2e4b5604457c61723359c5036bd34
Contents?: true
Size: 765 Bytes
Versions: 23
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Errors::NoClientConfig do describe "#message" do let(:error) do described_class.new(:analytics) end it "contains the problem in the message" do expect(error.message).to include( "No configuration could be found for a client named 'analytics'." ) end it "contains the summary in the message" do expect(error.message).to include( "When attempting to create the new client, Mongoid could not find a client" ) end it "contains the resolution in the message" do expect(error.message).to include( "Double check your mongoid.yml to make sure under the clients" ) end end end
Version data entries
23 entries across 23 versions & 2 rubygems