Sha256: 77d54705588d6247f5ac07d76d89f8da4d129b1a3675a09901783b19d5fbc4bd
Contents?: true
Size: 680 Bytes
Versions: 4
Compression:
Stored size: 680 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::VersioningNotOnRoot 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( "Versioning not allowed on embedded document: Address." ) end it "contains the summary in the message" do expect(error.message).to include( "Mongoid::Versioning behaviour is only allowed on documents" ) end it "contains the resolution in the message" do expect(error.message).to include( "Remove the versioning from the embedded Address" ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems