Sha256: a996f4a58d73cd3de4055eb64bf7d54c61d0b33c415f3cc022df5471eedadba9
Contents?: true
Size: 791 Bytes
Versions: 23
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(: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
23 entries across 23 versions & 2 rubygems