Sha256: 63256e9275ac3bea0d2cec1c0a60d1bd36bc94dbbff2f31d1562696da7457fec
Contents?: true
Size: 742 Bytes
Versions: 59
Compression:
Stored size: 742 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::NoClientDatabase do describe "#message" do let(:error) do described_class.new(:secondary, { 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: :secondary." ) 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 :secondary" ) end end end
Version data entries
59 entries across 55 versions & 3 rubygems