Sha256: b05b10216c3f2b89e2e8ea3a813b8e272749c1bb55d442934af7e453505b7baa
Contents?: true
Size: 594 Bytes
Versions: 3
Compression:
Stored size: 594 Bytes
Contents
require 'spec_helper' describe Mongoid::Errors::NoMetadata do describe "#message" do let(:error) do described_class.new(Address) end it "contains the problem in the message" do error.message.should include("Metadata not found for document of type Address.") end it "contains the summary in the message" do error.message.should include("Mongoid sets the metadata of a relation on the") end it "contains the resolution in the message" do error.message.should include("Ensure that your relations on the Address model") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-3.1.7 | spec/mongoid/errors/no_metadata_spec.rb |
mongoid-3.1.6 | spec/mongoid/errors/no_metadata_spec.rb |
mongoid-3.1.5 | spec/mongoid/errors/no_metadata_spec.rb |