Sha256: 1f5971b3bbcaafa9e1fba01bad927a1d0d9537b9a4eae0e89393b63defb2a516
Contents?: true
Size: 696 Bytes
Versions: 73
Compression:
Stored size: 696 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::EagerLoad do describe "#message" do let(:error) do described_class.new(:ratable) end it "contains the problem in the message" do expect(error.message).to include( "Eager loading :ratable is not supported since it is a polymorphic" ) end it "contains the summary in the message" do expect(error.message).to include( "Mongoid cannot currently determine the classes it needs to eager" ) end it "contains the resolution in the message" do expect(error.message).to include( "Don't attempt to perform this action and have patience" ) end end end
Version data entries
73 entries across 68 versions & 6 rubygems