Sha256: 3a8be483bd5eb20a36eaceca55914146c3a312fa7f182323fac7d416e999f2e9
Contents?: true
Size: 692 Bytes
Versions: 73
Compression:
Stored size: 692 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::UnknownAttribute do describe "#message" do let(:error) do described_class.new(Person, :gender) end it "contains the problem in the message" do expect(error.message).to include( "Attempted to set a value for 'gender' which is not allowed on" ) end it "contains the summary in the message" do expect(error.message).to include( "Without including Mongoid::Attributes::Dynamic in your model" ) end it "contains the resolution in the message" do expect(error.message).to include( "You can include Mongoid::Attributes::Dynamic" ) end end end
Version data entries
73 entries across 68 versions & 6 rubygems