Sha256: d2e029524df5520a0ffd209624e4ccb20084e9602c9f6ac38fb4a193dc9fb68e
Contents?: true
Size: 745 Bytes
Versions: 14
Compression:
Stored size: 745 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::NoSessionDatabase do describe "#message" do let(:error) do described_class.new(:secondary, { hosts: [ "localhost:27017" ] }) end it "contains the problem in the message" do expect(error.message).to include( "No database provided for session configuration: :secondary." ) end it "contains the summary in the message" do expect(error.message).to include( "Each session 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
14 entries across 14 versions & 5 rubygems