Sha256: c1138ae4102a7d0c328a46c336ed07442f6471ae681d3274391cb946be0b6a8c
Contents?: true
Size: 668 Bytes
Versions: 4
Compression:
Stored size: 668 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 error.message.should include( "Versioning not allowed on embedded document: Address." ) end it "contains the summary in the message" do error.message.should include( "Mongoid::Versioning behaviour is only allowed on documents" ) end it "contains the resolution in the message" do error.message.should include( "Remove the versioning from the embedded Address" ) end end end
Version data entries
4 entries across 4 versions & 2 rubygems