Sha256: f7603aedb4812365e0dbb798db9e548a96f5e6d440149e8158ad33c4a22d5cc7
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 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 error.message.should include( "Invalid option :localized provided for field :testing." ) end it "contains the summary in the message" do error.message.should include( "Mongoid requires that you only provide valid options" ) end it "contains the resolution in the message" do error.message.should include( "When defining the field :testing on 'Person', please" ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems