Sha256: db907971982c324fc22a418be3758db59c4de8a75818c9bb846868e78007baa9
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 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 error.message.should include( "Eager loading :ratable is not supported since it is a polymorphic" ) end it "contains the summary in the message" do error.message.should include( "Mongoid cannot currently determine the classes it needs to eager" ) end it "contains the resolution in the message" do error.message.should include( "Don't attempt to perform this action and have patience" ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-3.1.7 | spec/mongoid/errors/eager_load_spec.rb |
mongoid-3.1.6 | spec/mongoid/errors/eager_load_spec.rb |
mongoid-3.1.5 | spec/mongoid/errors/eager_load_spec.rb |