Sha256: 9cc9d5330dd83c2bc0ff587cfa21ed80cb126fa8dd9c8f4015d5439cf62a5d0e
Contents?: true
Size: 727 Bytes
Versions: 59
Compression:
Stored size: 727 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::NoClientHosts do describe "#message" do let(:error) do described_class.new(:secondary, { database: "mongoid_test" }) end it "contains the problem in the message" do expect(error.message).to include( "No hosts provided for client configuration: :secondary." ) 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 :secondary" ) end end end
Version data entries
59 entries across 55 versions & 3 rubygems