Sha256: e1dee3c9f8e840657a6047c6ef161e9165280a0e1b70a5b313d4132aa15e7313
Contents?: true
Size: 715 Bytes
Versions: 73
Compression:
Stored size: 715 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::InvalidFieldOption do describe "#message" do let(:error) do described_class.new(Person, :testing, :localized, [ :localize ]) end it "contains the problem in the message" do expect(error.message).to include( "Invalid option :localized provided for field :testing." ) end it "contains the summary in the message" do expect(error.message).to include( "Mongoid requires that you only provide valid options" ) end it "contains the resolution in the message" do expect(error.message).to include( "When defining the field :testing on 'Person', please" ) end end end
Version data entries
73 entries across 68 versions & 6 rubygems