Sha256: a431f721d3cfc07a072eb2373ce035fcd959a204096de268da07fa3853d6a480
Contents?: true
Size: 373 Bytes
Versions: 73
Compression:
Stored size: 373 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::InvalidSetPolymorphicRelation do describe "#message" do let(:error) do described_class.new(:postable, Post, Person) end it "contains the problem in the message" do expect(error.message).to include( "The postable attribute can't be set to an instance of Person" ) end end end
Version data entries
73 entries across 68 versions & 6 rubygems