Sha256: f58d7c4cf8de12d69e1243592a4d3002c1767a6023f6e113d0067c47cb03c6aa
Contents?: true
Size: 362 Bytes
Versions: 3
Compression:
Stored size: 362 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::InvalidSetPolymorphicRelation do describe "#message" do let(:error) do described_class.new(:eyeable, Eye, Face) end it "contains the problem in the message" do error.message.should include( "The eyeable attribute can't be set to an instance of Face" ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems