Sha256: 66b114e5a62930e676a041965c8f58e421ede0ac7c61c62ce7322413cbbf38c5
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
require 'spec_helper' describe Mongoid::Errors::InvalidPath do describe "#message" do let(:error) do described_class.new(Address) end it "contains the problem in the message" do error.message.should include("Having a root path assigned for Address") end it "contains the summary in the message" do error.message.should include("Mongoid has two different path objects") end it "contains the resolution in the message" do error.message.should include("Most likely your embedded model, Address") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-3.1.7 | spec/mongoid/errors/invalid_path_spec.rb |
mongoid-3.1.6 | spec/mongoid/errors/invalid_path_spec.rb |
mongoid-3.1.5 | spec/mongoid/errors/invalid_path_spec.rb |