Sha256: f53694e9de8b4e0eccb77fc8552668a52c5c00fdcef1b08d6d1d9ca8866c4dfb
Contents?: true
Size: 721 Bytes
Versions: 14
Compression:
Stored size: 721 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::NoSessionConfig do describe "#message" do let(:error) do described_class.new(:secondary) end it "contains the problem in the message" do expect(error.message).to include( "No configuration could be found for a session named 'secondary'." ) end it "contains the summary in the message" do expect(error.message).to include( "When attempting to create the new session, Mongoid could not find a session" ) end it "contains the resolution in the message" do expect(error.message).to include( "Double check your mongoid.yml to make sure under the sessions" ) end end end
Version data entries
14 entries across 14 versions & 5 rubygems