Sha256: 33b3a35746142f2772399cd2dd64b40f6910417ae2d8da530cbf244f1d30df27
Contents?: true
Size: 754 Bytes
Versions: 25
Compression:
Stored size: 754 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Mongoid::Errors::InverseNotFound do describe "#message" do let(:error) do described_class.new("Town", :citizens, "Person", :town_id) end it "contains the problem in the message" do expect(error.message).to include( "When adding a(n) Person to Town#citizens, Mongoid could not" ) end it "contains the summary in the message" do expect(error.message).to include( "hen adding a document to an association, Mongoid attempts to link" ) end it "contains the resolution in the message" do expect(error.message).to include( "If an inverse is not required, like a belongs_to or" ) end end end
Version data entries
25 entries across 25 versions & 1 rubygems