Sha256: 8bf578c846fd29371c75e9271f0acbff517f68617f105ce3f42b8ce8eb36e6cb
Contents?: true
Size: 606 Bytes
Versions: 73
Compression:
Stored size: 606 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 expect(error.message).to include("Metadata not found for document of type Address.") end it "contains the summary in the message" do expect(error.message).to include("Mongoid sets the metadata of a relation on the") end it "contains the resolution in the message" do expect(error.message).to include("Ensure that your relations on the Address model") end end end
Version data entries
73 entries across 68 versions & 6 rubygems