Sha256: 6f9cf269df91f3fe8eba638a6786207dbcd177cb492791f87417cbc78817b3db
Contents?: true
Size: 726 Bytes
Versions: 5
Compression:
Stored size: 726 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Errors::InvalidConfigFile do describe "#message" do let(:error) do described_class.new('/my/path') end it "contains the problem in the message" do expect(error.message).to include( "Invalid configuration file: /my/path." ) end it "contains the summary in the message" do expect(error.message).to include( "Your mongoid.yml configuration file does not contain the" ) end it "contains the resolution in the message" do expect(error.message).to include( "Ensure your configuration file contains the correct contents." ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems