Sha256: 43644404465227673074554888df1e45f911fdcc3e773e117732b1fa0b2f8b49
Contents?: true
Size: 722 Bytes
Versions: 27
Compression:
Stored size: 722 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Errors::InvalidConfigOption do describe "#message" do let(:error) do described_class.new(:bad_option) end it "contains the problem in the message" do expect(error.message).to include( "Invalid configuration option: bad_option." ) end it "contains the summary in the message" do expect(error.message).to include( "A invalid configuration option was provided in your mongoid.yml," ) end it "contains the resolution in the message" do expect(error.message).to include( "Remove the invalid option or fix the typo." ) end end end
Version data entries
27 entries across 27 versions & 2 rubygems