Sha256: b283ca452dc97cc14ef0319d9a3a71b454c5c876e7f6dfbe8cf8b7b919dae188
Contents?: true
Size: 719 Bytes
Versions: 73
Compression:
Stored size: 719 Bytes
Contents
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 a relation, 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
73 entries across 68 versions & 6 rubygems