Sha256: 44b85f50e49dcf6c0743ff7fa30d97efca8abb999c3e55267915683c221e5b97
Contents?: true
Size: 662 Bytes
Versions: 27
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 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 an association on the") end it "contains the resolution in the message" do expect(error.message).to include("Ensure that your associations on the Address model") end end end
Version data entries
27 entries across 27 versions & 2 rubygems