Sha256: 3adb60bf1bf778f7e645c59b7281128e9599fb346a34cd01f511afb981570db6
Contents?: true
Size: 422 Bytes
Versions: 27
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 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 & 2 rubygems