Sha256: c4b22d184b50110e5c75aacf81401bd890d03787d18ad7ffcce7eac65c15ce5f
Contents?: true
Size: 644 Bytes
Versions: 25
Compression:
Stored size: 644 Bytes
Contents
# frozen_string_literal: true 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
25 entries across 25 versions & 1 rubygems