Sha256: 541a85c98e2541d5543208648269959f04f53255741f79c48bff9649bcfb8080
Contents?: true
Size: 745 Bytes
Versions: 27
Compression:
Stored size: 745 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Errors::MixedRelations do describe "#message" do let(:error) do described_class.new(Post, Address) end it "contains the problem in the message" do expect(error.message).to include( "Referencing a(n) Address document from the Post document" ) end it "contains the summary in the message" do expect(error.message).to include( "In order to properly access a(n) Address from Post the reference" ) end it "contains the resolution in the message" do expect(error.message).to include( "Consider not embedding Address, or do the key storage" ) end end end
Version data entries
27 entries across 27 versions & 2 rubygems