Sha256: 505c35da69497d8d4779ca2d8e8b91f94045746d211ddaf4fc6c61d4c7593e88
Contents?: true
Size: 864 Bytes
Versions: 27
Compression:
Stored size: 864 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Errors::InvalidCollection do describe "#message" do context "default" do let(:klass) do Address end let(:error) do described_class.new(klass) end it "contains the problem in the message" do expect(error.message).to include( "Access to the collection for Address is not allowed." ) end it "contains the summary in the message" do expect(error.message).to include( "Address.collection was called, and Address is an embedded document" ) end it "contains the resolution in the message" do expect(error.message).to include( "For access to the collection that the embedded document is in" ) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems