Sha256: 012abf202a72f385e849d1f1f4a90fe44271aefea12a53782183db604f084f63
Contents?: true
Size: 404 Bytes
Versions: 27
Compression:
Stored size: 404 Bytes
Contents
# frozen_string_literal: true 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
27 entries across 27 versions & 1 rubygems