Sha256: 41bf5e989efe6a3ec7a637c044a255050ac879ba8c48af4a005355fe7bec1d20
Contents?: true
Size: 688 Bytes
Versions: 3
Compression:
Stored size: 688 Bytes
Contents
require "spec_helper" describe Mongoid::Errors::InvalidIndex do describe "#message" do let(:error) do described_class.new(Band, { name: 1 }, { invalid: true }) end it "contains the problem in the message" do error.message.should include( "Invalid index specification on Band:" ) end it "contains the summary in the message" do error.message.should include( "Indexes in Mongoid are defined as a hash of field name and direction" ) end it "contains the resolution in the message" do error.message.should include( "Ensure that the index conforms to the correct syntax" ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-3.1.7 | spec/mongoid/errors/invalid_index_spec.rb |
mongoid-3.1.6 | spec/mongoid/errors/invalid_index_spec.rb |
mongoid-3.1.5 | spec/mongoid/errors/invalid_index_spec.rb |